cancel
Showing results for 
Search instead for 
Did you mean: 

How to Pre-select an item when making an ISR DDL.

Former Member
0 Kudos

I am trying to mimic the functionality of the "Position Field' in the SPPD, but I can't figure out how it is pre-selecting the PLANS_CURR box with the current position.

I basically want a drop down bo, which I am populating with data using ls_special_data, and I am able to do that fine, but now I would like to specify and certain record to be pre-selected.

Does anyone know how to do this?

Thanks,

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

hi Tim and Sridhar,

How do we do the binding.

On the Adobe dynamic binding I See see.

for example for the forms field PERSK_NEW

ITEM Binding

Item value text

Item key key

but the source code in ls_additional_data has this code

ls_additional_data-fieldindex = index.

ls_additional_data-fieldname ='PERSK_KEY'.

ls_additional_data-fieldvalue = int_table-key.

append ls_additional_data to additional_data.

ls_additional_data-fieldindex = index.

ls_additional_data-fieldname = 'PERSK_LABEL'.

ls_additional_data-fieldvalue = int_table-label.

append ls_additional_data to additional_data.

endloop.

In this case how is PERSK_KEY bound to Item key

and 'PERSK_LABEL' bound to item value

Please guide. I am trying to create a PCR from scratch and got stuck up big time at this point

Former Member
0 Kudos

Tim,

Make sure the value in PLANS_CURR is available in additional_data (in method SCENARIO_SET_ADDITIONAL_VALUES).

I am assuming you must have defined value list attributes of DDL field DDL (key and label) in binding.

regards

sridhar

Former Member
0 Kudos

In the wdDoInit() method set the context attribute that is binded to the drop down list box to the value you wanted.

For Ex:

wdContext.currentDataSourceElement().setServiceCenter("GAHT");

Here the service center attribute of the context is binded to the dropdown box in the adobe form. So when the form opens it always selects the GAHT from the drop down.

Hope that helps

Anu