cancel
Showing results for 
Search instead for 
Did you mean: 

fill dropdownlist per Interface

Former Member
0 Kudos

Hi Experts,

I'm trying to fill dropdown lists dynamically by value passing over the form interface.

(itab contains item1, item2, item3)

CALL FUNCTION fm_name

EXPORTING

/1bcdwb/docparams = fp_docparams

zw_export = wa_zexport

itab1 = itab

IMPORTING

/1bcdwb/formoutput = fp_formoutput

EXCEPTIONS

usage_error = 1

system_error = 2

internal_error = 3

OTHERS = 4.

In the form designer the itab is binded to the dropdown list. But in the generated PDF (received in my outlook) I can't open the dropdown menue. The three passed values are on top of each other in the first line of the DD and I can't open the dropdown.

I tried to open the PDF with Adobe 7.0.9. (SAPnote 834573) but the problem is the same.

What can be wrong?

I hope for some answers.

many thanks in advance!

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Roger,

dynamic form object properties is a new feature in LiveCycle Designer 7.1. If you don't have version 7.1 you can't dynamically bind the propertie List Items.

In Object->Binding you bind a selected value (not list items).

Or you can try javaScript like following for the initialize event of your drop-down list:

this.clearItems();
var loNodes = xfa.record.ITAB1.nodes;
var loNodesRow;
lLength = loNodes.length;
for (var i = 0; i < lLength; i++) {
  loNodesRow=loNodes.item(i).DATA.nodes;
  this.addItem(loNodesRow.item(0).value);
}

Regards

Michal

Former Member
0 Kudos

Hi Michal,

I am so happy! It works !!!!!!!

I have updated the LiveCycle Designer to 7.1!!

Thanks a lot!

Regards

Roger

Former Member
0 Kudos

Hi,

I assume, that your table ITAB has one column KEY.

Did you bind property List Items (tab Object->Field) like this?

Items: $record.ITAB1.DATA[*]

Item Text: KEY

Item Value: KEY

If you can't bind property List Items (isn't underlined and green), go to menu Tools->Options, tab Data Binding and check Show Dynamic Propertis.

You have to use different attribute for Default Binding (tab Object->Binding). Here is binded a selected value.

Regards

Michal

Former Member
0 Kudos

Hi,

many thanks for your help but it doen't work.

My itab has one column LIST:

Object->Binding

Name: LIST

Default Binding: $record.ITAB1.DATA[*].LIST

Object->Value

Type: User Entered - Optional

Default: LIST

Object->Field

Type: Drop-down List

Appearance: Sunken Box

There is no tab "Data Binding" under Tools->Options.(!?)

I don't understand the following...

"You have to use different attribute for Default

Binding (tab Object->Binding). Here is binded a selected value."

Hava you got any Idea? Is there something wrong with our installation?

I can't open the dropdown list. If I enter static values (List->Item) the DDL opens.

thanks for your patience

Roger