on 12-10-2008 9:49 AM
Hi
I hav a form which contains 2 input text boxes.
User clicks on submit and moves to different view after filling form.
these values are mapped to context so that i can display them in next page.
Now wen i click on back button in view2....it takes me back in view 1.
I get my old values already there.
I wish if i could reset my form wen i Travers back to it.
1 method to do so is coding in init() method.
that i reinitialize my context in init method....
but i there any other way to do so....
thanks in advance
I am also new to this.
But u can use this on ur plug event.
wdThis.wdGetContext().currentContextElement().setCtx_firstname("");
wdThis.wdGetContext().currentContextElement().setCtx_lastname("");
Does anyone know of a better way? like setting a property
Tell me if it works
Vikram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yes Ramesh it is not working in my case...
I am having a form with me having 2 fields...
i have mapped these field to view context attributes...
then these attributes to component context attributes...
now wen i am navigating from this view to second view.....these values are getting displayed there...
but on coming back to this view...old values are still present in that form......!!
i used wdthis.wdgetcontext.invalidate.....
but my form is still picking old values....!!
Hi,
Invalidate your node in Back Action button.
Regards
Raghu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Saurabh Agarwal,
When you return back to Frist view from second view the plug method will execute.
You can reset the two context attributes in the onPlug method.
Regards,
VJR.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hii,
clear your input node after clicking the backbutton.
inputNode.invalidate();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
25 | |
12 | |
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.