cancel
Showing results for 
Search instead for 
Did you mean: 

How to fill dropdown list in Adobe form

Former Member
0 Kudos

Hi Experts,

I am new to adobe form.Please tell me ,how to fill drop down list in adobe form?

Thanks,

Hans

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You can populate the values in the dropdowns using two ways:

1: Keep the static entries in the adobe form :

To specify list item values:

Select the drop-down list object.

In the Object palette, click the Binding tab.

Select Specify Item Values.

Double-click the first value that you want to change.

Type the new value.

Press Enter to change the next value or double-click any other value to change it.

or

2: Bind the dropdown with context attribute and populate the values in the view/controller.

Hope this helps!!

Regards,

Arafat

Former Member
0 Kudos

Hi,

Thanks for ur reply.. I have done second way (2: Bind the dropdown with context attribute and populate the values in the view/controller.)But not populated..

If we write any code(script) for this..

Thanks & regards

Hans

Former Member
0 Kudos

Hi Hans,

Let me know which type of forms you are using: ActiveX or Native?

Based on the type of forms used, dropdowns are populated.

Regards,

Arafat

Former Member
0 Kudos

Hello Arafat,

I am using a drop down list in Adobe Interactive Form for Web Dynpro ABAP.

The form is of ZCI type layout and the form interface is of XML schema-based interface type and the XML schema source is set to "Generated".

I have included the following code in WDDOINIT method of the view:

-


data: handle1 type ref to if_wd_context_node,

begin of zstruct,

zktokd type kna1-ktokd,

end of zstruct,

zitab type table of zsttxecr.

handle1 = wd_context->get_child_node( name = 'DATA.NODE1' ).

select ktokd from kna1 into corresponding fields of zstruct.

append zstruct to zitab.

endselect.

handle1->bind_table( new_items = zitab ).

-


In the Adobe Form Designer, i have binded the node NODE1 to the enumerated drop down list from native web dynpro library. Still the drop down box is not getting populated.

Please let me know what is missing.

Thanks and Regards.

Former Member
0 Kudos

I have created a drop down list using enumerated drop down list from webdynpro native tab and binded in the object palette by giving $record.sap-vhlist.DESCR\.DATA\.FIELD.item[]* in the list items dynamically.DESCR is the field in the internal table into which i fetched data from the database table .I have written this code in a BADI.I dont know whether my form's display type is activex or native? I am not getting any values in the drop down list.can anybody please tell me what might be missing and how should i know whether my form is ActiveX or Native?

My form is called from portal so i have used BADI to connect portal to form.