148
Views
2
Comments
Multi Select Combo Box - Traditional Web App

Hi All

Hope you are well. I have been battling with a multi select box in a form i am building. In terms of the interface, it works as it should. The problem i am having is with assigning the selections to the Attribute within the Entity. 

Below is my Entity, the attribute to which the data in question belongs is "WhatSupplierStoryAreYouImpacting" which references a static entity containing the list of options. 

In the form i have Dropdown Select which is bound to my list box containing the options:

I use the following on change Action:

I am telling it to pass the form data to a SupplierList Variable which (In Theory) should assign the selected values to my supplier list variable which is then used to populate the Entity on Submit. I Currently have the variable setup like this:

I have tried setting it as an input parameter, record data type instead of ID and various other things and various combinations but the result i get is it passes nothing to the table. I have ran the debugger and each time the value it passes to the SupplierList Variable is "0". 

Do i need to run some sort of a loop? What is the correct way to setup my variable so that it can receive the options selected. 

Id really appreciate some help with this as i have sweated over it for a couple of days now and just cant seem to figure it out. 

Many Thanks

Mike

2022-05-02 13-50-49
Paulo Ritto

Hi Mike,

Are you able to share your .OML so I can help you better?

What is the SupplierList variable supposed to be/represent? Because the name would indicate that it is supposed to be a LIST of suppliers, but as I can see from your screenshot, your SupplierList variable holds an identifier. Is this what you want that variable to hold?

UserImage.jpg
Michael Freath

Hi Paulo. 

This Particular List Contains 2 options. 

As for the variable, I have tried many different ways of setting it up i.e. input parameter, record type, list type, using ID, Attribute Label etc. So far i have not found a winning combination. Ideally, id like it to pass the label. ID is fine for single select as i can convert this in my preparation but as it is a multi-select Label would be preferred. 

Or is that where my problem is? The attribute selection is Label but the attribute will only accept The ID? 

Many Thanks


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.