on 08-14-2006 2:06 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
For this ,please refer the following document.
I think it will be helpful to u.
Thanks & regards
Anirudh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.