Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There is no way to modify list values programmatically. And if you want to synchronize the values with a table as you say then that would be impossible if you do it programmatically anyway as there is no way to store the table Id or code along with the field value.</p> <p>If you really need the synchronization part then you may try using a crazy bit of workaround. You can store the allowed values using the xml as you normally do for display. After that in a separate group of allowed values you can specify a hidden index list of values for a user group name "xxxx" so that it doesn't show up. In this hidden list you can store the "TableId=ValueName" mapping of your current state of the table. Then the next time one of your fields gets modified you can refer this list and get the previous name of the value and modify it in the index and the display list. You can then use this same index list for maintaining the settings of your Workflow and FormLayout.</p> <p>Refer the following example...</p> <pre><code>&lt;ALLOWEDVALUES&gt; &lt;GLOBALLIST name="globalListName" /&gt; &lt;LISTITEM value="Name1" /&gt; &lt;LISTITEM value="Name2" /&gt; &lt;LISTITEM value="Name3" /&gt; . . . &lt;/ALLOWEDVALUES&gt; &lt;ALLOWEDVALUES for="xxxxxx" expanditems="false"&gt; &lt;GLOBALLIST name="globalListName" /&gt; &lt;LISTITEM value="Id1=Name1" /&gt; &lt;LISTITEM value="Id2=Name2" /&gt; &lt;LISTITEM value="Id3=Name3" /&gt; . . . &lt;/ALLOWEDVALUES&gt; </code></pre> <p>Extremely out of the box but could be used if absolutely necessary.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload