on 10-06-2006 2:55 PM
Hi,
After pushing a confirm button I want to refresh the data in the form. What code do i need to use?
But I also want after pressing cancel button the data should be cleared? What code do i need to use?
regards
Eoin
Eoin,
You need to be little elaborate about what exactly you are doing.
Regards,
Anand
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
After manually inserting the data in the form when you click the Confirm button write the execute method or store where ever do u need . After form input fields make it empty.
Like this clear the input fileds in the form.these are attributes all are in mapped datanode in the Pdfsource.
WdContext.current<node>Element().getName(" ");
Thanks
Lohi.
Eoin,
Typically, you have some code that initializes context nodes with data. Say, you have placed it in wdDoInit of controller.
Now just extract this code to some private controller method, say "load". If you call "load" from wdDoInit this will works like initialization, if you call it from onRefresh action handler this should work as "refresh". Make sure only that you are invalidating related context nodes in the start of "load" method.
Now if you add a flag to reload to return after invalidating context nodes, you'll get a reset functionality. Probably you will need a code to set some default values right after invalidation.
Valery Silaev
SaM Solutions
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.