by bob9999 » 17 May 2019 23:13
OK, I figured out that the JQDropDownOptions.SelectByValue(JSonObj); and JQDropDownOptions.SelectByValues(Array) only work after the form is created. I was in the form create event setting up the screen and the selections have to be completed after. I moved to the form render event.
So now there is a difference when a data query drop down, then the statements above add the ID number to the select and that is what the user sees and when a static item dropdown, then the correct text values are displayed instead.
The only other outstanding issue on this thread is how do you get when data driven to auto grow like when there are just static items. SO the component seems to have different subtleties depending where the items are coming from.
The documentation may be good to update for this that these functions are non functional in the create form event unless I missed somewhere. Would have saved me 4 hours.
Cheers!