cancel
Showing results for 
Search instead for 
Did you mean: 

Drop down list in Adobe forms

Former Member
0 Kudos

Hi All,

I need to provide a drop down list in the Adobe form. I am calling this form from an SE38 program. I have selected the 'Value Help drop down list' element. How do i pass the value or bind the values to this element. The values for the drop down list are selected from a standard table at runtime.

I tried using Enumerated drop down list also but did not work.

Any idea????

Thanks,

Prakash Pandey

Accepted Solutions (1)

Accepted Solutions (1)

OttoGold
Active Contributor
0 Kudos

hello, I guess you need to work with the Dynamic binding and tab Object - Binding - Specify Item Values. This way you can bind a drop down list to a table in your context/ data view. First you need the table as was described above. Next you need to enable Dynamic binding in the Properties of designer. Next go to tab Object - Binding - Specify Item vaues. Set your table and cols you nned to bind to the drop down. After that you will see some little mark at the Specify item values text. And now you have your drop down bound to a table.

Be careful, according to my experience your LC Designer will crush when specifying this dynamic binding, you will need to experiment a bit to set that up properly. Try to look around about this dynamic binding or provide details about what you´ve tried/ done so far. Regards Otto

Former Member
0 Kudos

Hi Otto,

How to i enable dynamic binding on my form?

I have a table in my interface having 2 fields (key and text).

I have pulled the table from the interface to the form context.

I tried binding the table KEY column to the Value Help drop down list. The form gets generated but it doesnt show any value in the drop down list.

Am i missing something?

Thanks,

Prakash Pandey

Former Member
0 Kudos

Hi Otto,

Thanks for your help, I found the option to enable dynamic binding.

It is working now.

Answers (3)

Answers (3)

OttoGold
Active Contributor
0 Kudos

I am not sure if that can be done (if yes, then how). I guess you need a grouping of values in DropDown like you can have in HTML, is that right? Maybe you can use some "service" values (like ___group1, val1, val2, ___group2, val1, etc.) and check if the user did NOT select one of the service values and if yes, reject such value.

Otto

OttoGold
Active Contributor
0 Kudos

Follow:

1) in LCD menu - Tools - Options - Data binding - Show dynamic properties - should be TRUE

2) goto drop down Object - Binding - Specify Item values

3) click on the "Specify..." text

4) a dialog box appear with 3 lines

Items: YOURTABLE.DATA[*]

Item text: YOURFIELD

Item value: YOURFIELD

This should work for you. Good luck, Otto

Former Member
0 Kudos

Hi ,

Thanks for posting this, saved me a lot of hassles trying to program something. One question. My values are in a nested table. e.g. I have a table with criteria for an appraisal. The criteria have a dropdown on them with a ratings. So, one appraisal, many citeria, many possible rating values. When I put in your code, e.g. $record.APPRAISAL.CRITERIA.DATA[].RATINGS.DATA[] , I get all Ratings relevant to all criteria on each line for the criteria table, not just for the criterion they belong to. How do I specify that it should only pick up the ratings for the current criterion ?

Hope my explanation makes sense

Thanks !

former_member214651
Active Contributor
0 Kudos

Hi,

U can use the Enumerated drop down list, but for the list to populate at runtime u need to do it through coding by using the standard API's

1. ISimpleTypeModifiable()

2 IModifiableValueSet()

using these 2 API's it is possible to populate values at runtime.

Regards,

Poojith MV

Former Member
0 Kudos

Do you mean that i need to call these APIs from my ABAP program?

if so how?

Do you have any sample code?

Thanks,

Prakash Pandey

NoJo
Active Participant
0 Kudos

hi, do you have an online (web dynpro, abap?) scenario or an offline scenario?

for an online scenario there exists an object in the library,

for an offline scenario define as source of your help a table with 2 colums (pairs of value and the texts),

add the table to your interface, add it to the context of the form, inside the form bind it aganist the properties for the listelemensts of the drop down list box

norbert