cancel
Showing results for 
Search instead for 
Did you mean: 

How to retrieve selected data from Multi Selected List Box in SAP Adobe Forms

sailaja_rangam
Explorer
0 Kudos

Business scenario is to provide multi selection for field for Offline Form. I have created 2 List Boxes, one to display list of values and other for selected values.

I am populating values dynamically

if(Lists.selectedIndex > -1)

{

var count = Lists.items.nodes.length;

for ( var i = count-1; i >= 0; i--)

{

if( Lists.getItemState(i) == true)

{ var entry = Lists.getDisplayItem(i);

//var value = Lists.getElement(i);

Selected.addItem(entry); Lists.deleteItem(i);

} } }

Could anyone help me how to get the values from Selected List Box. Through above i am successfully populating the data runtime, but while uploading i need content from selected list box.

I was thinking an approach to have hidden table to store content, Please help me with code, to add record to a table. AddInstance will add a row, but how to populate the data? IS there anyway direct binding works.

Accepted Solutions (0)

Answers (1)

Answers (1)

sailaja_rangam
Explorer
0 Kudos

I have created a Text Field(Hidden), and written logic on Layout Ready Event to concatenate the values from the selected ListBox. If any other solution is there, please suggest