Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Dropdown field null or not an object
getnaren
in the initilization of form I check for the value like this...
if(IWDatacapture.getItem("/doc/id").getOptions()[IWDatacapture.getItem("/doc/id").getValue()].value != 0){
IWDatacapture.getItem("/doc/id").setReadOnly(true);
}
when I open a dcr I get
'IWDatacapture.getItem(...).getOptions()[...].value' is null or not an object
once I select some value, save it and open it...the error will go away as there is some value...
is there any way I can check for null value?
I tried checking for null like this
if(IWDatacapture.getItem("/doc/id").getOptions()[IWDatacapture.getItem("/doc/id").getValue()].value != null){
IWDatacapture.getItem("/doc/id").setReadOnly(true);
}
Find more posts tagged with
Comments
nipper
I suspect IWDatacapture.getItem("/doc/id").getValue() is null, check for it 1st.
getnaren
I suspect IWDatacapture.getItem("/doc/id").getValue() is null, check for it 1st.
I got it..thanks