Skip to Content
0
Jun 23, 2020 at 04:49 AM

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

60 Views

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.

Attachments

2llzb.png (27.7 kB)