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
Tarun Kumar
272
Views
11
Comments
how to pass two values in dropdown
Question
OutSystems UI Patterns
how to show the two fields in dropdown,i mean how to show two fields in dropdown ,for example drop down must show last name and firstname both ,in a dropdown
André Siébra
Hi Tarun,
Check this component:
https://www.outsystems.com/forge/component/494/search-and-autocomplete/
This is a autocomplete solution, but I hope it achieve your needs.
B
est regards,
Kilian Hekhuis
Â
MVP
If that's not what you're looking for, the only thing you can do is compose it yourself. That means, have a structure with the required fields (Id and FullName or the like), and fill it with the desired value. Note that on Platform 9.1, you can do that quite easily by using a ListAppendAll and mapping the appropriate attributes.
Curt Raddatz
If you don't need a full solution like Autocomplete, the easy way to get this is to change the Source Attribute property of the drop down. Currently you probably just have LastName (or whatever the entity attribute name is). Change that to LastName + ", " + FirstName and you'll see both names in the drop down. Be sure the Variable property still has the Id entity attribute for the entity.
Kilian Hekhuis
Â
MVP
@Curt: cool, I didn't know you could do that. Is that (relatively) new?
Curt Raddatz
Oops I was wrong and Kilian is correct. I tried using my method and I thought it worked but I had to create a structure also. Damn I hate getting old.
Curt
Kilian Hekhuis
Â
MVP
:)
Tarun Kumar
Did not understood . You see the 3rd dropdown on top in that i want the both firstname ,lastname to show together .
and do the serching
Suraj Borade
Tarun,
Please share your sample OML file.
Kilian Hekhuis
Â
MVP
Tarun,
I have the feeling that you are trying to do relatively advanced things without knowing very much about the OutSystems platform. What I wrote above is fairly basic stuff. If you don't understand that, please do whatever you can to improve your skills on the platform. We're not here to baby spoon feed you.
André Vieira
Staff
Tarun,
Assuming you are populating the combo with the results of an aggregate you can achieve what you want by creating a calculated column on the aggregate that concatenates first name and last name. See
here how to do it
.
Then when you populate the properties of the combo box just select this new attribute instead of first name. Leave the Variable pointing to the Id as someone said above.
Cheers
Tarun Kumar
Thanx ,it has been working fine now
here have a look
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...