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.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
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.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
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.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
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
October Events

Mark Your Calendars

So many events that are happening this month - don't miss out!

Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Users online (4,294)