cancel
Showing results for 
Search instead for 
Did you mean: 

reg : Dropdown on Adobe form

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Solved myself

Former Member
0 Kudos

Hi Arjun,

I have the same issue. Can you share the solution with me? Appreciate your help.

Thanks,

Giri.

Former Member
0 Kudos

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.

Former Member
0 Kudos

Arjun:

Step 1 says, 'Create an internal table in the interface'. Does this mean I have to create a attribute in view context of type String_table ?.

Please explain.

thanks and regards

vijai

Former Member
0 Kudos

Hi,

Are u working in WD with Adobe or Adobe only??

0 Kudos

Hi Arjun:

Well done! Your explanation was perfect - all other posts on this particular topic were harder to understand, but your "step by step" made it easy.

Thanks,

Sean

chintan_virani
Active Contributor
0 Kudos

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