cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tonykiefer
Super User
Super User

Save combobox value when display/fields property is set from two columns

I have a combo box populated with items from two sql columns.  The display/field property is set like so...

["PRM_ML","PRM_CD"]

 

The ComboBox...

tonykiefer_0-1630336868964.png

The two combined fields need to be save as one value in the record set but I'm not sure how to write the Update property.

 

I tried multiple combinations of syntax with no luck.

 

MainFabric_ComboBox.SelectedItems.PRM_ML,PRM_CD

 

Please help

1 ACCEPTED SOLUTION

Accepted Solutions
gabibalaban
Dual Super User
Dual Super User

@tonykiefer ,

MainFabric_ComboBox.Selected.PRM_ML & MainFabric_ComboBox.Selected.PRM_CD

 It is unclear if your combobox support multiple selection (in this case the above formula will not work)

 

Hope it helps !

View solution in original post

3 REPLIES 3
gabibalaban
Dual Super User
Dual Super User

@tonykiefer ,

MainFabric_ComboBox.Selected.PRM_ML & MainFabric_ComboBox.Selected.PRM_CD

 It is unclear if your combobox support multiple selection (in this case the above formula will not work)

 

Hope it helps !

@gabibalaban...Thank you for the feedback.  I did not try that syntax.  I also forgot to mention the combobox is NOT set for multiple selections.  This solution works.  Thanks again!

JR-BejeweledOne
Super User
Super User

You can do this with a multi-select combobox:  Replace 'yourcomboboxvaluehere' and 'YourComboBoxValue' with the value property of your combobox. 

 

Concat(MainFabric_ComboBox.SelectedItems.yourcomboboxvaluehere, YourComboBoxValue & ", ")

 



If you like this post, give it a Thumbs up. If it answered your question, Mark it as a Solution to enable other users find it.

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (2,969)