nickc
1
How do you trigger a function when an object isDrawn?
I have a select list using an optionDataSource.
I then have a function which makes use of the field.pickList property, however the function trys to access the pickList before it is drawn.
I tried to create a do loop to wait while the object is drawn, but the script timeouts.
do { testing = field.isDrawn(); }
while(testing!==true);
If I run the function after the whole page is drawn I have no problem accessing the pickList property.
item.pickList isn’t a documented property anyway. Bigger picture, what are you trying to do?
nickc
3
I have a page which marks a DataSource as requiring a refresh next time it’s loaded, MyDS.refreshMe = true.
Then when any select using an optionDataSource is loaded it looks for this property and calls pickList.refreshData() if it is found.
I am only after a way of making a DataSource refetch the data the next time it is called if this property has been set.
Is there a better method?