Skip to Content
Former Member
Aug 02, 2006 at 10:41 AM

doubt in Java Webdynpro wddoInit( )



The scenario is:

I have two views related using plugs.

first view has a table with set of records(for ex: name, empid, dept)

second view has text fields to be entered for all the above mentioned fields (name, empid, dept).

This view has 2 buttons, save and cancel.

If i click save button it saves the record and add the record to the table.

If i click cancel button, it shows me the table (first view).

I have written code in view1, wdDoInit( ) method to call a method X which gets data to be filled in the table.

In view 2 while save is clicked im calling the same method X. which adds new row and populates the table.

The problem comes here.

when I click cancel button, it shows me the view1 with table as empty. since im calling the method in wdDoInit() to populate the table.

when the cancel button is pressed it is not going to init method again. Im not sure how to proceed

Can anyone help me on this issue.