on 10-23-2008 6:35 AM
HI,
I Hava a table on the adobe form with 7 columns and 10 rows.
I want a dropdown on the first column for 10 rows.
I changed the first column of the table to Dropdown Field.
I want to fetch the values on to this dropdown from a Ztable.
Can Any one give me any idea ?
Regards
Arjun
Solved myself
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Giri,
please follow the steps.
1) Create an internal table in the interface and in the code initialization ....get the records into that internal table.
now the internal table has records.
2) In the form , u should be able to see the internal table and the fields inthe DATA view tab.
3)place a dropdown field from the libaray onto the form.
4)select the dropdown...and from the menu select PALETTES..and select OBJECT.
u will get a pop up...in the pop up select the binding TAB.
5)u will see the DEFAULT BINDING. underthat u will see a input field..next to that field u have a button ...click the button for binding and select ur internal table and field(this field will have drop down values.)
binding for the dropdown is finished.
now u can see this code automatically generated.
$record.IT_DD.DATA[*].TEXT
here IT_DD is my inetrnal table and
TEXT is my int table field where this field will have drop down values
next...u can see the SPECIFY ITEM VALUES in the same popup. click this.
u will get anotherpop up.
in this popup..u can see BINDINGS...
under this u see ITEMS and a input field.
in this input field ..just copy and paste the above generated code..and at end of the code just remove internal table field.
check below for clarification.
$record.IT_DD.DATA[*]
and now u can see ITEMS TEXT and an input filed.
in tis inout field ..put the int table field .
here my int table field is TEXT.
and now u can see ITEMS value and an input filed.
in this input field ..put the int table field .
here my int table field is TEXT.
every ting is finished ..just selct OK.
NOW RUN THE FORM.
Hope this helps.
Regards
Arjun.
Arjun,
Create context nodes in Web Dynpro (Java / ABAP both should work in same way I belive), supply the data in the context using your JAVA/ ABAP knowledge and then map this context to your drop-down.
Then goto the Binding tab --> Select Specify List items option and change the REPLACE_THIS in following line as per the fieldname you have.
$record.sap-vhlist.REPLACE_THIS.item[*]
In same window specify the node which will have text and key and you should be all set I belive.
Chintan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.