on 11-19-2008 7:57 AM
Hi,
I am trying to access the context attribute and assign value to it inside wdDoInit() of the iView. But when i deploy and execute it is saying " Null pointer exception". Please help me.
Code
wdContext.currentInfoElement().setFirstName("Raghu");
Edited by: Raghunathan Mohan on Nov 19, 2008 9:06 AM
Hi,
wdContext.currentInfoElement().setFirstName("Raghu");
from the above statement i think the node "Info" cardinality is 0...n ,change the cardinality to 1..1 or 1..n.
Regards,
ramesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
As per above post please check cardinality to be 1..n or 1..1 (if you want only one node instance). You should instantiate the node first then only you can have the elements.
Can you provide the previous lines of code, which could be checked?
Regards,
Anagha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Did you create element for the info node? If not please create it. If you dont have any element then how can you access its attributes.
Hope it helps.
Cheers,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.