- Code: Select all
nuSetFormValue('dpl_prj_dml_items',nuLookupRecord()->dpl_catl_dml_items);
This works really good for all types of text fields and number fields.
However no I wanted to use a Select object with multiselect enabled and do the same thing as above.
The select seems to save the data textual in SQL in the following structure:
- Code: Select all
["val1","val2" ... ]
That's ok but it seems that this structure can't be applied to the nuSetFormValue function. The Select GUI object stays the same and the selected values are always cleared.
Is there a way to use the string from the SQL to update the MultiSelect GUI object?
I guess there must be a function because the system has to convert the string representation and apply it to the GUI element when the edit view is loaded.
thx.