cancel
Showing results for 
Search instead for 
Did you mean: 

Table

Former Member
0 Kudos

Hi experts,

I have imported one RFC model.using RFC i did one table.In my application whenever select my table row it will populate the values in below using input fields and dropdown box.My table has 5 values in each row.Below this table i have 2 input field and 3 dropdowns.If i select one roe i will populate all the value as corresponding UI elements.

could anyone send me step by step method with code.

Thanks.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi

1. Get the selected node value of the Table .

int selectedIndex= wdContext.currentTableElement().index();

2. populate the values from the coressponding node's attribute values.

//For Text Field

String text1=wdContext.node<NameTable>().get<nameTable>ElementAt(selectedIndex).current<TextNodeElement>().get<PAram>();

(or)

String role=wdContext.node<NameTable>().get<NameTable>ElementAt(selectedIndex).get<Param>();

//For Dropdown

String dropdown1=wdContext.node<NameTable>().get<nameTable>ElementAt(selectedIndex).current<DropdownNodeElement>().get<PAram>();

Kind Regards

Mukesh

Former Member
0 Kudos

Hi,

For this ,please refer the following document.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/developi...

I think it will be helpful to u.

Thanks & regards

Anirudh

suresh_krishnamoorthy
Active Contributor
0 Kudos

Hi Selvam,

Try this steps

Create GridLayout in this order

1. Table

2. Button(modify)

3. Input field and drop down by key

Intially your table and drop down should show all values.

Select a row on table by OnleadSelect and then only you supposed to click modify button(validation here table click or disable modify button until you click on row).

Once you clicked the button corresponding value should diplay on input field and set key value to drop down automatically corresponding value will be display on drop down

Regards

Suresh

Former Member
0 Kudos

Please refer <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/bad3e990-0201-0010-3985-fa0936d901b4">table tutorial</a>.

Regards,

Subramanian V.