on 04-21-2008 8:39 AM
Dear Frds
I am having some input fields. and a button
when i click that button i get output in the table...
Suppose when i give wrong inputs and click the button
i need to refresh the table contents..
Some old content is displayed...
How to refresh Table contents for every Click Button...
Thanks in Advance
Shravan G
HI Shravan,
wdContext.nodeYourModelNode().currentYourModelNodeElement().modelObject().bind(new class of your modelnode);
this will solve your problem
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shravan ,
Bind the function module class to the context node at the starting if the method function module execute as
Z_XXXx obj= null;
obj=new Z_XXXx();
wdContext.node<Z_XXXXX>.bind(obj);
followed by the method execute and invlaiadtion of the function module
we too faced the same problem but it gets solved by doing as given above.
Regards
Padma N
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
Try to put this code to refresh the table
while(<urNode>size()!=0){
<urNode>.removeElement(<urNode>.get<urNode>ElementAt(<urNode>.size()-1));
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
In Any way u have to refresh the data, even input is correct or wrong. if correct show new data, if wrong empty data. right?
as GS said you have to invalidate the context node...
in "onClick"/"onSubmit" method of the button. if still not getting the required result....
then try validating node at start of the method. i.e. before logic of data generation.
regards,
Pradeep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
use the Invalidate method for the table refresh.
use the if condition ie : if the input is correct shoe the output in the table
else invalidate the node as
wdContext.nodeurtableNode.invalidate();
thanks and regards
Fistae
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use invalidate function...
For example..Invalidate the table using foll code..
wdContext.nodeVnStatementListFilter().invalidate();
GS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.