on 11-14-2007 4:12 PM
Hi Gurus,
I've one problem with the Drop Down By Index in the WEBDYNPRO JAVA.
I'm filling the Drop Down By Index from the node based on some condition.
Based upon the condition the node has only one record.
After adding the node data to my drop down by index i'm getting the data but the problem is i'm getting two rows in the drop down by index.
First one is Empty string and the second is the actual value.
I've written some logic on the "onselectionchange" of the Drop Down By Index.
There if i select the empty string i'm getting the following error
"java.lang.NullPointerException "
How to resolve this issue.
Thanks in advance.
Regards,
Adi.
This message was moderated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
"onselectionchange" you can check whether the selected key is not null before you go ahead with the process.
wdContext.your_selectedKey_variable!=null
Raja T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can either check that something is selected in onselectionchange and not execute whatever is giving you the error, or on the node that fills the drop down set the selection property to 1...1, this will remove the blank option from the drop down.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.