cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
NurNida
Helper III
Helper III

combobox not save to SharePoint ( Multivalue)

I have a SP list  contains all product status which i lookup using combobox. And it working fine..

Q2.JPG

I select 2 item in combobox and looks like it selected in update codes

q3.JPG

 

BUT after submit form it not save to the sharepoint list. Not sure what is wrong here? 

After submit item will be save in SP named "List B" and Type: Single line of text.

 

Should I change to multivalue?

 

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User
Super User

@NurNida 

You seemed to indicate that it was a multivalue in your topic.

 

If it is text, then set the Update property to:

Concat(cmbProdReg.SelectedItems, ItemDetails, ",")

This will store your values with a comma separator.

_____________________________________________________________________________________
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!

View solution in original post

6 REPLIES 6
RandyHayes
Super User
Super User

@NurNida 

Assuming you DO have a multi-select choice column in your list...

 

Change your formula in the Update property to:

RenameColumns(cmbProdReg.SelectedItems, "ItemDetails", "Value")

Choice columns expect a Value based record...yours is ItemDetails based - that will not work!

 

I hope this is helpful for you.

_____________________________________________________________________________________
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!

The field that I try to save the value is : Single line of text. Not choice.

Combobox list is lookup to other SharePoint list. 

Combobox is multivalue and allow search.

 

I tried created another column try to save the combobox value but it only appear one selection which is the last selected. 

 

I am not sure how to save this item in sharepoint. 

Other then in Updates or the sharepoint column type. 

RandyHayes
Super User
Super User

@NurNida 

You seemed to indicate that it was a multivalue in your topic.

 

If it is text, then set the Update property to:

Concat(cmbProdReg.SelectedItems, ItemDetails, ",")

This will store your values with a comma separator.

_____________________________________________________________________________________
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!

Great!.. TQVM for your help! Looks like I need to have clear understanding of adding

.ItemDetails 

 

It works after I remove .Item at the end of this selection in combobox Item.

 

SortByColumns(
Filter(
SEAPR_Configuration,
Lower(LookupKey2) = Lower("ProdRegulatory" & txtcmpny.Text)
),
"SortItem",
Ascending
).ItemDetails

 

Use this in Update:

Concat(cmbProdReg.SelectedItems, ItemDetails, ",")

 

 

 

 

RandyHayes
Super User
Super User

@NurNida 

Your Combobox Items property is returning a table with a Single column called "ItemDetails".  This is because you narrowed your table by appending .ItemDetails in that formula.

 

Other than your formula for the Items property of your combobox is not delegable (thus you are getting a warning), it should all work.

_____________________________________________________________________________________
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!

exactly 👍.. 

this line return warning :  Lower(LookupKey2) = Lower("ProdRegulatory" & txtcmpny.Text)

 

I try not to hardcode in the apps and create a configuration list.

This combobox has set of selection (Prod Regulatory) base on company. 

 

It will be good if anyone can have sample app or tutorial to do so called setup of the application. So any combobox/dropdpwn item just need to set up in this configuration list instead of hard code in column choice.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

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.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,709)