Field of type table_name with None option

Dominik Simunek
Tera Guru

Hi all developers,

I want to have table_name field with base_table set to a table (e.g. task) so that you can select only tables inheriting base table however I want to still include -- None -- option as it is in e.g. Business Rules. The issue is that I found no attribute working for that so far and once I specify base_table=task in dictionary, the -- None -- option is gone. I have found two places in the platform where "includeNone" attribute is used for table_name field but it does not look working and it is not documented.

Do you have other idea, how to show -- None -- option in the same way as when the base table is not restricted?

Best regards,

Dominik

1 ACCEPTED SOLUTION

Stefan Baldhof1
Kilo Guru

Hi Dominik,



in addition to the "base_table" attribute just choose "Dropdown with -- None --" from the "Choice List Specification" as shown in the screenshot.


dropdown_with_none.png



Regards,


Stefan


View solution in original post

5 REPLIES 5

Sharique Azim
Mega Sage

Hi Dominik,



Not sure how   you are implementing this, but you can include none if that field is choice from its dictionary or create non selectable table extending task, with an onsubmit just dont let it submit.


HI Shariq,



The field is of type "table name" which allows you to select specific table in such a field. It is used e.g. in Busienss Rules where you need to select a table on which the rule should run. However once you define "base_table" attribute in dictionary of that table_name field then you do not see "none" option and first option is actually selected for you even there is no default defined. Hopefully this makes things clearer.



Best regards,


Dominik


Stefan Baldhof1
Kilo Guru

Hi Dominik,



in addition to the "base_table" attribute just choose "Dropdown with -- None --" from the "Choice List Specification" as shown in the screenshot.


dropdown_with_none.png



Regards,


Stefan


Hi Stefan,



That works, great. I was thinking that this is used just for "Choice" fields, but it works also for "Table Name" fields. Thanks!



Best regards,


Dominik