Skip to Content (Press Enter)
OutSystems.com
Personal Edition
Community
Support
Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Jobs
Ideas
Members
Mentorship
User Groups
Platform
Platform
ODC
O11
Search in OutSystems
Log in
Get Started
Back to Forums
Daniel Cuccia
450
Views
2
Comments
ComboBox, special list + aggregate list
Question
So I have a combo box, it has 2 "special items" and a list of values coming from an aggregate. Those "special items" are not being set to it's respective variable, why?
I have it working, but it involves hacky work-arounds - anyways, this scenario really begs to question.. why would "special items" not be set to the local server variable?
Kilian Hekhuis
MVP
Daniel,
I assume by "special items" you mean an item from the Special List? The reason why their values are not put into the Variable bound to the combo box is twofold: for one, the combobox Variable is often an identifier, and it makes sense not to allow non-existing identifiers; and two, you can have special items with a Value that's of a different datatype, that you can use for easy checking.
That said, the platform provides a Special Variable that can be used to assign the selected Special List's item's Value. I don't see why this should involve a "hacky work-around".
Daniel Cuccia
I ended up switching the data-type to text, and in the preperation concat the two lists (special list + aggregate data), that way I can maintain the logic with one variable instead of checking against two (and also have dynamic "special list" values instead of hardcodes). I get why the platform didn't want to bind an unknown-type to a strongly typed variable; I just found one dropdown binding to two variables a bit non-intuitive. Thanks for the reply!
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
See the full guidelines
Loading...