14
Views
7
Comments
Solved
Combobox with dynamic values
Question
Hello,

I am trying to use a combo box in my app , but it has been quite a challenge. This combo box does not contain static values, it changes depending on previous selections. I need this combo box to contain the values that come from an external sql database that I reference using integration studio.

Can anyone help me with this please?

Thanks 
UserImage.jpg
inesccastelo
Solution
Hi, I was finally able to do what I needed with the help of this question here in the forum https://www.outsystems.com/forums/discussion/10269/combo-box-pass-the-display-value-instead-the-id/. Anyway, tahnks for all the help :) 
2018-05-16 11-16-36
João Heleno
 
MVP
Hi Inês,

take a look at this How To: 
https://www.outsystems.com/forge/component/697/How+To+-+Use+Cascade+Dropdowns/

Kudos go to André Madeira!
UserImage.jpg
Carlos Conde

I think you should create an onchange action to do that.
2012-08-01 17-33-40
Gerry
You need a query to that external database whose List will populate the drop down.
UserImage.jpg
inesccastelo
That is what I do and it returns me an error as seen in the image. I can't do anything about this error but I don't understand what I am doing wrong. I just can't set the source identifier attribute.
2017-07-05 18-13-21
Tiago Neves
Hi Inês,
You have to change the variable.
Instead of massActions.Current have a variable that represents the Identifier of the entity you want
UserImage.jpg
inesccastelo
The thing is that my entity doesn't have an identifier, or maybe I just can't find it. That identifier ... is it an autonumber int id? 
UserImage.jpg
inesccastelo
Solution
Hi, I was finally able to do what I needed with the help of this question here in the forum https://www.outsystems.com/forums/discussion/10269/combo-box-pass-the-display-value-instead-the-id/. Anyway, tahnks for all the help :) 
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.