on 09-17-2007 2:38 AM
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........
Hi Shravan
Clarify one thing..are you getting the data from Backend
Regards
Chaitanya.A
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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...........
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
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.