cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bababalush
Level: Powered On

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
Super User
Super User

Re: problem in creating combo box in edit form

@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.

View solution in original post

5 REPLIES 5
Super User
Super User

Re: problem in creating combo box in edit form

@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.
bababalush
Level: Powered On

Re: problem in creating combo box in edit form

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 & ",")

 

Highlighted
Community Support Team
Community Support Team

Re: problem in creating combo box in edit form

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.
bababalush
Level: Powered On

Re: problem in creating combo box in edit form

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"  

Super User
Super User

Re: problem in creating combo box in edit form

@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.

View solution in original post

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (5,432)