What is the best way to handle foreign key Object which allow NULL value in UI

10 views
Skip to first unread message

Dawn Chen

unread,
Mar 20, 2014, 3:57:50 AM3/20/14
to openbi...@googlegroups.com

Dear all,

Assume Ticket doesn't really need a product, a new ticket can save without a product assigned to it. 
I've tried use Listbox which bind dynamic list (table column) to it, there is no way assign NULL to product of ticket, always has a default value if you have products.
I also tried a ProductPickForm, yes, you can leave it blank which save a NULL value, but once you pick a product, saved, you can never assign NULL value back to it.
so my question, is there any built in input in Openbiz can handle this case smoothly without additional code.

Rocky Swen

unread,
Mar 20, 2014, 11:35:25 AM3/20/14
to openbi...@googlegroups.com

there is an attribute of listbox called BlankOption. you can try use it to set the value as Null

--
You received this message because you are subscribed to the Google Groups "Openbiz Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openbiz-cubi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dawn Chen

unread,
Mar 20, 2014, 11:06:27 PM3/20/14
to openbi...@googlegroups.com, ro...@openbiz.me
Got it.

Thanks.

在 2014年3月20日星期四UTC+8下午11时35分25秒,Rocky Swen写道:
Reply all
Reply to author
Forward
0 new messages