on 01-11-2010 5:10 AM
Hi all,
I'm trying to implement input table but the table shows as read-only.
1. Node cardinality = 0...n
2. Selection = 0...1
3. Singleton = true
All fields are input field.
After i deploy and run the application, the read-only table shows up.
Please advise me on this. Thanks in advance.
Peerasit
Hello Jomsri,
The table is coming as read only because you havenot added any element to the nodes and by default there will be no element in the node as you are selecting a cardinality of 0...n. If you change it to 1..n then you can see one row will have input fields enabled.
Best way to implement this is add a button in the layout, name it as add a new row and in the action of this button add the following code:-
IPrivateTestingCompView.I<nodename>Element a = wdContext.node<nodename>().create<nodename>Element();
wdContext.node<nodename>().addElement(a);
this will add a new row to the table each time you press the push button.
Hope this will solve the problem
Regards,
Sarbjeet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Have u created node elements to display?
u have to create and add node elements.
for eg:
let say ur node is "Test",
ITestElement element = wdContext.nodeTest().createTestElement();
element.set<Attibute name>() = " XXXXXXXXX";
wdContext.nodeTest().addElement(element);
Hope it helps
Thanks and Regards
Fazal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
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.