cancel
Showing results for 
Search instead for 
Did you mean: 

how to refresh the form?

Former Member
0 Kudos

Hi

i have few input field for example take first name and last name

and also i have two buttons YES or NO,when ever i fill the form and click on YES button ,the data should be loaded in to database and the page should be Refreshed and when ever i click on NO data should be loaded that it( refreshing the form is not necessary when i click on NO button),plz help me out frm this issue

thanks

kishore

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi ,

On Action of YES clear the attributes

i.e wdContext.currentcontextElement().setfirstName("");

wdContext.currentcontextElement().setLastName("");

Regards,

Sunitha

Answers (3)

Answers (3)

Former Member
0 Kudos

nnhhnh

Former Member
0 Kudos

Hi,

If the first name and last name are 2 individual valueattributes the clear them for yes button as

wdContext.currewntcontextelement().setFirstname("")
wdContext.currewntcontextelement().setLastname("")

if the firstname and lastname is binded to a common value node then invalidate the node as givne below

wdContext.node<name od value node>().Invalidate();

Regards

Padma N

Former Member
0 Kudos

Hi,

On click of YES invalidate your node

Regards

Ayyapparaj