cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bababalush
Frequent Visitor

problem in creating combo box in edit form

Hi,

i have a combo box with the following code in items property:

Sort(Distinct('[mdt].[MATERIAL]', PRODUCT_FAMILY), Result, Ascending)

and i want to save multiple values in the share point list with this combo box.

so the code in the update property of the data card is:

Concat(ComboBox1.SelectedItems, Result,", ")

 

but for some reason it dont save the value in the sharepoint list.

please help

1 ACCEPTED SOLUTION

Accepted Solutions

@bababalush 

Please verify that the field/Column that your DataCard is based on is the one you mention is a Text column in SharePoint.  From the error you are getting, it leads me to believe that the DataCard is working with a different field as the result of the Concat will be a Text string and, if your field is a text column, will work fine with it.

This error means that the DataCard is referencing a field/column that is not a text column, but instead is a table based column such as a Choice, Lookup or other type of Multi-Value column.

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

View solution in original post

5 REPLIES 5
RandyHayes
Super User III
Super User III

@bababalush 

 

Your formula for the Concat is a little off...it should be as follows:

   Concat(ComboBox1.SelectedItems, Result & ",")

This will give you a comma separated list of selected items.

I assume your SharePoint column is a text column....if the column is a choice column, then this will not work.  If so, then post back and we'll go into that one.

 

I hope this is helpful for you.

 

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

Thaks for the fast answer.

but i tried all that.

I am getting the error "Ecpected Record value" when trying to write the function:

Concat(ComboBox1.SelectedItems, Result & ",")

 

Hi @bababalush ,

Could you tell me which field do you want to update data with multiple values in the share point list with this combo box?

And what is this field's data type?

Could you show me more settings of your form?

Pictures, formulas all help.

 

 

Best regards,

Community Support Team _ Phoebe Liu

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

The field type im updating is line text or multiple line of text.

i am using combo box (ComboBox1) with items property:

Sort(Distinct('[mdt].[MATERIAL]', PRODUCT_FAMILY), Result, Ascending)

this show me text list of PRODUCT_FAMILY (alias as Resault)

in the datacard of the field , in the update property i write:

Concat(ComboBox1.SelectedItems, Result & ",")

 

the error i get when i hover on the property:

"Ecpected Record value"  

@bababalush 

Please verify that the field/Column that your DataCard is based on is the one you mention is a Text column in SharePoint.  From the error you are getting, it leads me to believe that the DataCard is working with a different field as the result of the Concat will be a Text string and, if your field is a text column, will work fine with it.

This error means that the DataCard is referencing a field/column that is not a text column, but instead is a table based column such as a Choice, Lookup or other type of Multi-Value column.

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

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (40,310)