on 02-10-2006 4:12 PM
Hi all,
I've a dropdown by index (filled with a db table's values) on a view and when I select the empty value (that is also the first one) I get a nullpointer exception. Any idea?
Thanks in advance.
Angelo
Hi Angelo,
Could you please post a stacktrace?
Best regards, Maksim Rashchynski.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Angelo,
if you dont want the first value to be empty, set the collection cardinality of the context node bound to the dropdwon control to 1..n
and check it with lead selection for overcoming the null pointer exception, than explicilty trying to access the code
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Solved!
if (wdContext.node<node>().getLeadSelection() != -1) {
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
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.