cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Reset

Former Member
0 Kudos

Hi friends...

I got one view iny application where i have few drop down list and input fields...

i hve two buttons submuit and reset...

when i submit i will get the table based on the i/ps from dropdownlist.....

my requirement is

I have Reset button...When i press Reset button the the data should be refreshed and it shopuld appear just as it appeared before at first...

All the dropdown Index the lead selection should be to the first and the table should be empty........

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Shravan

Clarify one thing..are you getting the data from Backend

Regards

Chaitanya.A

Former Member
0 Kudos

Hi

Yes,, When i press refresh button it should appear just like it appeared when my view is loaded.....

How is table refreshed........

Former Member
0 Kudos

Hi

1) wdContext.nodeXX.invalidate() // this will clear the exsisting contents

2) call the same method from which you are retrieving the records from backend

// so that you can get the actual data from backend

3) nothing to do with the drop down list as it will be automatically refreshed

Regards

Chaitanya.A

Message was edited by:

Chaitanya Adharapurapu

Former Member
0 Kudos

Hi

Place the above mentioned code in onRefreshXX() // your refresh button's action

so that when you click on refresh this will happen

Regards

Chaitanya.A

Former Member
0 Kudos

Hi

I have written ur code but the table is not refrreshed and dropdown list by index are not reset....

I have added dropdownlist BY index and added with with Select- at the top of the drop down list

when i press reset button the pointer should go to the ---Select -- just as it came when i loaded the view for the first time.....

and the table should also be refreshed.....

i should get table with no values...........

Former Member
0 Kudos

HI

1) if you want to clear all the contents of the table just use nodeXX.invalidate()

2)to set the <b>Select</b> as your top value

String NONE="Select";

int size = yournodeXX.size();

if(<i>size<=0))</i>

{

wdContext.currentXXElement().setXX(NONE); // to set default your dropdown by index

}

Regards

Chaitanya.A