cancel
Showing results for 
Search instead for 
Did you mean: 

Opening the record details in a Java Web Dynpro

Former Member
0 Kudos

Hi,

I have an unique requirement in my project.

I have to update Vendor Admin Data from Java Web Dynpro View.

In our view we have two areas, 1> Contact Person Data

and 2> Other Contact Persons.

There should be one main contacts and many sub-contacts.

Now, sub-contacts should be displayed in a Java Web Dynpro table.

When, we need to modify the row of this Web Dynpro table; we should click on this row

and then get the details of this record in another Java Web Dynpro view.

I know we can navigate between two web dynpro views by inbound and outbound plug.

Is it possible to update a row in Web Dynpro table or get a detailed view of that row ?

Regards

Neha Singh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Lets say your subdata node contains two elements sno and name.

Now create two input fields in the same view and bind these elements to that field.

Whenever you select a row in the table that corresponding value will be populated and you can modify.

If you want it to be stored temporarily try to create a dummy node and using some event save that.

Best Wishes

Idhaya R

Answers (2)

Answers (2)

Former Member
0 Kudos

hi,

In order to adhere to MVC architecture and to have a proper design of application making use of RFC as backend, you can follow the following approach:

1. Map you model nodes with the controller.

2. Create table node in view and map it to table.

3. Create the same table node in controller and map it with the table node inview using contect mapping.

4. Once RFC is called, data is populated in model node created in step !.

5. After execution of RFC, write a business logic method to cop data from model into the controller's table node.

6. Since context mapping is done, data would be automatically populated in iview table.

7. Later to pass on the row data to some other view, write an action method on selection of row. In the action method, take the values from the lead selected row and pass it to next view.

Hope this helps to fullfill your requirement.

thanks,

amit bagati

former_member214651
Active Contributor
0 Kudos

Hi,

Try creating a new Window which wil contain a view to display the record selected in the table.

1. On click of a row, get the records selected using the Lead selection of the table

2. Open a new window passing the values of the selected row.

3. Perform the actions required in the new window

4. Close once action is completed.

Regards,

Poojith MV

Former Member
0 Kudos

Hi Poojith,

The actual data in the table would come from RFC Model.

But till now, there is no RFC being written.

Could I bind the context nodes with some static data and show them in the Java Web Dynpro View

and then implement the current logic?

Regards

Neha Singh

p330068
Active Contributor
0 Kudos

Hi Neha,

You can try with static data after populating the context node for the table.

once it is successful, then populate contex node for table with RFC data.

Hope it helps

Regards

Arun

former_member214651
Active Contributor
0 Kudos

Hi,

You can try doing it with a static node which contains some dummy values. Once the RFC is ready, use the same and copy the values to the same node.

Regards,

Poojith MV