on 01-16-2009 8:47 PM
Hello there,
I am getting NullPointerException when I am initializing the table node attributes in the wdInit() method of the component controller.
This node is mapped to table node in the view context,
wdContext.currentTableNodeElement().setAttribute("attr");
Cardinality: 0..n
Selection: 0..1
Can we manually initialize mapped table node attributes in the wdInit() of component controller?
Thanks
Srinivas
hi,
use th following link,
In this example check out the code in page 42.
value node : quizdata
value attibutes: question.answer,counter.
1. In the for loop populate the value attributes under the value node
2. den v bind the collection of context node elements to context value node
wdContext.nodeQuizData().bind(questions);
And regarding the cardinality it is as you have used 0 : n
Regards
Jayapriya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Srinivas,
For assigning a value to the table element you need to do it as following:
IPrivate<View Name>View.I<Node name>Element element=wdContext.node<Node name>.create<Node Name>Element();
element.set<Attribute Name>("String");
wdContext.node<Node Name>.bind(element);
This way you can do what you want.
Regards.
Rajat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
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.