cancel
Showing results for 
Search instead for 
Did you mean: 

Clear field in table between views

0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

In the inbound plug handler of the view, do node->invalidate( ). This will clear the values bound to your context node.

Answers (3)

Answers (3)

0 Kudos

Thank you

Former Member
0 Kudos

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

Former Member
0 Kudos

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