cancel
Showing results for 
Search instead for 
Did you mean: 

regarding table refresh

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (6)

Answers (6)

snehal_kendre
Active Contributor
0 Kudos

HI Shravan,

wdContext.nodeYourModelNode().currentYourModelNodeElement().modelObject().bind(new class of your modelnode);

this will solve your problem

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi ,

Try to put this code to refresh the table

while(<urNode>size()!=0){

<urNode>.removeElement(<urNode>.get<urNode>ElementAt(<urNode>.size()-1));

}

PradeepBondla
Active Contributor
0 Kudos

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

former_member201361
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi,

Use invalidate function...

For example..Invalidate the table using foll code..

wdContext.nodeVnStatementListFilter().invalidate();

GS

Former Member
0 Kudos

Hi

I already use invalidate() for tne node..

but the previous node data is still there...

the data is previous node data it is not the data of the current node..

How to refresh the node automatically after clicking the button...

thanks

Former Member
0 Kudos

I think u r not invalidating the correct node..

Can u pls paste u r coding here...

GS