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

Combobox with EditForm

I think there is a bug in the ComboBox component.

When I initiate a new Form based on a SharePoint list, which contains many columns (component in the form), and set "default" value of these elment to value that I would like to set (as a pre-defined form), after submitted the form, I found that most of the components are saved accordingly. Excep the ComboBox, which is a Lookup table referring to another list. 

When setting the "Default", I chose to set the "DefaultSelectedItems" of the ComboBoox instead of the "Default", cause it could display the result in the form. (see attached picture). But when I submit the form, it did not store it into the record. 

I saw similar problem reported. 

 

Martin Sun

1 ACCEPTED SOLUTION

Accepted Solutions
MartinSun2000
Level: Powered On

Re: Combobox with EditForm

 Thanks you!

My problem was solved by settign the DefaultSelectedItems with a "filterd" Choice from the "Item" of that control. . ( See attached. )

I think this give the correct link to the choice.

 

You suggested code work with a Patch command. But I am not sure how to put it in a form which as initiated with NewForm command.

Thanks a lot anyway!

BR,

Martin


@v-monli-msft wrote:

Hi @MartinSun2000 ,

 

Would you please explain more about what are the 'Employee 员工' and 'Name' parameters? I suppose that these are the SharePoint list name and the person and group column name. If so, then please try to use below formula instead and have a test:

{'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
        Claims:"i:0#.f|membership|name@xxxxx.onmicrosoft.com",
    Department:"",
   DisplayName:"Name Here",
         Email:"Name@xxxxx.onmicrosoft.com",
      JobTitle:"",
       Picture:""
   }

 

Regards,

Mona


 

View solution in original post

2 REPLIES 2
Community Support Team
Community Support Team

Re: Combobox with EditForm

Hi @MartinSun2000 ,

 

Would you please explain more about what are the 'Employee 员工' and 'Name' parameters? I suppose that these are the SharePoint list name and the person and group column name. If so, then please try to use below formula instead and have a test:

{'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
        Claims:"i:0#.f|membership|name@xxxxx.onmicrosoft.com",
    Department:"",
   DisplayName:"Name Here",
         Email:"Name@xxxxx.onmicrosoft.com",
      JobTitle:"",
       Picture:""
   }

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
MartinSun2000
Level: Powered On

Re: Combobox with EditForm

 Thanks you!

My problem was solved by settign the DefaultSelectedItems with a "filterd" Choice from the "Item" of that control. . ( See attached. )

I think this give the correct link to the choice.

 

You suggested code work with a Patch command. But I am not sure how to put it in a form which as initiated with NewForm command.

Thanks a lot anyway!

BR,

Martin


@v-monli-msft wrote:

Hi @MartinSun2000 ,

 

Would you please explain more about what are the 'Employee 员工' and 'Name' parameters? I suppose that these are the SharePoint list name and the person and group column name. If so, then please try to use below formula instead and have a test:

{'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
        Claims:"i:0#.f|membership|name@xxxxx.onmicrosoft.com",
    Department:"",
   DisplayName:"Name Here",
         Email:"Name@xxxxx.onmicrosoft.com",
      JobTitle:"",
       Picture:""
   }

 

Regards,

Mona


 

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 (8,690)