on 10-23-2005 1:00 PM
Dear All,
I need to refresh my view. I have some input fields and table on the view now when i come back after processing the view the data still remains in the fields. i'm not getting a way to clear them. Can anybody suggest a way out??
Regds,
Anup.
Hi Anup,
Ex: If you want to clear all the fields after "Submit" then you can write the mentioned code in the action of the Submit button.
Ex 2 :When you are navigating from view1 to view2 then you can write the code in the InboundPlug of view2 (If you want to clear the fileds in View2)
Regards, Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
To clear the data in the table u have clear the data in teh corresponding binded node.
Since u have told that the process has been done u can invalidate the binded node.
wdContext.node<name>().invalidate();
Probably u have to re-create the elements
Regards
Bharathwaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If your data are stored on attributes which located on root you should clear each data manually for example:
wdContext.currentContextElement().setAtt ("");
If your data stored on attributes which located under a node you can use
wdContext.node<name>().invalidate();
This cause that all attributes under this node be deleted.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
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.