on 2020 Jun 23 5:49 AM
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.
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
11 | |
9 | |
8 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.