cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
espenjor
Helper II
Helper II

Combobox multiple value store and retrieve

The is one issue I have not been able to find a solution to in this group or by searching Google.

- If I save a multiple value result from a combo box (e.g. "One&Two&Three") and field in SQL (NOT SharePoint) and then

- Retrieve the data "One&Two&Three" back to the combox it seems to be correct, and when I have the data back to sql the result is blank.

 

I know there are a lot of solution there, but they dont actually work (according to comments to the "solution"). Is this simply not possible?

5 REPLIES 5
RandyHayes
Super User
Super User

@espenjor 

Very possible, but can you supply more information on the formulas you have for your DefaultSelectedItems property, the Items property and if this is NOT in an EditForm, then the Formula you are using to submit the data to your SQL table.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
RandyHayes
Super User
Super User

@espenjor 

Were you able to work through your issue or do you still need help?

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

A partly workaround is is check is the multi value check box have been checked and not try to do a save if this unchanged. The problem is till that you will need reselect all selected items, because when PowerApps are retrieving data if looking for an ID not the same - i belive.
Anyway, here is my bode in DefaultSelectedTems, and are more then grateful for any comments that canbring me one step further.

If(varMode<>"New";
ForAll(
Filter(
RenameColumns(
Split(
LookUp(
Sporsmal;
Nummer = varValgtNummer;
Profil
);
"&"
); "Result"; "Value");
!IsBlank(Value)
);
{Value: Value}
))

RandyHayes
Super User
Super User

@espenjor 

It depends.  Is this in an EditForm?  Is Sporsmal the datasource for your form?

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Yes, its a edit form, and Sporsmal is the source.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,077)