Hi,
I have Dropdown component on my Mongoose form, and I am filling it with GlobalScript. When I have only one column displayed it's ok. For filling Dropdown with values works command:
ThisForm.Components["dropList1_BU"].ListSourceScriptAddListItem(ct.businessUnitCode);
But when I setup two columns to display, I have problem:
How can I set values for more then one column? Function ListSourceScriptAddListItem only accept one string as parametr, so I am unable to setup values for second column.
Thanks for any help.
thanks, now I do not receive error, that I don't populate second column. So in that case, using "/t" works.
But, now DropList shows me only second value - businessUnitDescription, and…
You have Columns to Display set to 2. Set it to 1,2.
Sorry typo in component name. I ment DropList component.
Add a tab character between each entry in the string, i.e. "Item" + "\t" + "Description" + "\t".
But, now DropList shows me only second value - businessUnitDescription, and ignore the first one at all.
ThisForm.Components["dropList1_BU"].ListSourceScriptAddListItem(ct.businessUnitCode + "\t" + ct.businessUnitDescription + "\t");
So I must still missing something, or there is an error in design?
Thanks a lot! That's it. I did not understand this number of columns correctly.