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
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

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