on 11-14-2007 10:02 AM
I create 3 views.
1. The first view display the employees.
Select the employee and click 'DISPLAY'.
2. The second view will be displayed, with a table which have one input field.
I use a Supply function to get the data from view 1 to view 2.
3. If you do some input on the second view. you can click BACK or SUBMIT.
4. If you click back the final view will be display with a option to 'SELECT NEW'.
5. This will bring you back to view 2.
6. if I click DISPLAY without selecting a new employee,
the second view with the input I did the first time appear.
7. How can I make sure that the input field on the Second screen is always blank when appear.
Reset_view does not help.
Changing the properties of the second view does not help.
In the inbound plug handler of the view, do node->invalidate( ). This will clear the values bound to your context node.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try wd_context->invalidate(). Actually just resetting the input field using SET_ATTRIBUTE with an INITIAL value should be sufficient.
OR
Instead of passing the data using supply function, do it in an inbound plug of the view.
Hope this helps,
Wenonah
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Frances,
You can clear the context attribute (using the set_attribute method) to which your input field in view2 is bound.
Thanks and Regards,
Saravana. S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.