Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
TeamSite
TeamSite, LiveSite and OpenDeploy
setOptions ignores me
System
This one is driving me nuts --
I have a DCT which populates a drop-down list via a callServer. This callServer returns a list of 4 items that populate the drop-down list. However, about 50% of the time, the options are NOT set. When I do an alert to tell me parent.getScriptFrame().IWDatacapture.getItem("/root/Meetings/EventSubType").getOptions().length, it tells me
4
every single time, which is wrong half of the time.
What gives?
Below is the JS code in my callServer:
[HTML]
var options = new Array();
option[0] = new Option("Annual Executive Retreat","retreat",false,false);
option[1] = new Option("Charter Advisory Meeting","advisory",false,false);
option[2] = new Option("IT Executive Briefing","briefing",false,false);
option[3] = new Option("Member-hosted Forum","forum",false,false);
parent.getScriptFrame().IWDatacapture.getItem("/root/Meetings/EventSubType").setOptions(options);
parent.getScriptFrame().IWDatacapture.getItem("/root/Meetings/EventSubType").setReadOnly(false);
[/HTML]
So, why would I consistently get inconsistency?
Dave
Find more posts tagged with
Comments
There are no comments yet