on 07-28-2006 3:21 PM
hi,
i want to build an application where i need to insert,delete,edit the table with in the view. But i don't want to use any backend.
I have two views one in which i have all the InputFields for the relevent column of the table.Once i enter data in the InputFields and click insert button The data should get in to the table
And in the second view i.e., table view if i select one particular row i should be able to delete or edit after clicking delete button or Edit button.
But every thing i want to do it hardcoded except the UI Elements and contexts. could anybody help me out of this situation.
Thanks
Kalyan
For addition use :
IPrivate<ViewName>.I<NodeName>Node node1 = wdContext.node<NodeName>;
loop
IPrivate<ViewName>.I<NodeName>Element Element = node1.create<nodeName>Element();
<nodeName>Node.addElement(<NodeName>Element);
endloop
On action method of delete
int i = node1.getLeadSelection;
IPrivate<ViewName>.I<NodeName>Element Element = <nodeName>Node.getElementAt(i);
<nodeName>Node.removeElement (element);
For edit use same as delete except set values there
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Kalyan,
create a context node and add all value attributes you need to this node.
At runtime you can modify the content of the context node with
IPrivate<YOUR_VIEW>.I<YOUR_ELEMENT> e =
wdContext.create<YOUR_ELEMENT>();
e.setAbc(...);
e.setXyz(...);
wdContext.nodeTaskInstance().addElement(e);
Delete and Modify is equivalent.
Regards
Sebastian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use a value node, bind the table and the input fields to the attributes of that node.
Insert: Create and add node element
Delete: Delete lead-selected element
Edit: Set lead-selection
Armin
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 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.