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

submit items with the same data source in different screen

I have three edit screen with the same data source in my power apps studio. I wanna submit the Item.

Here is Some formula I used:

 

1- Onselect property to Submit==>Patch(EmailGroupForm,EditForm1.Updates,EditForm3.Updates,EditForm2.Updates);Navigate(BrowseScreen1,ScreenTransition.None) formulla to submit, but it only submit 2nd edit screen on my sharepoint list.

 

2- Onselect property to Radio button of 1st Edit screen==>UpdateContext({CurGroupType:" " });Navigate(EditForm2,ScreenTransition.None)

 

3- Onselect property to Radio button of 2nd Edit screen==>UpdateContext({CurEmailGroupType:" " });Navigate(EditForm2,ScreenTransition.None)

 

Here is the attached

 

 

:powerapps.PNG1st edit screenpowerapps1.PNG2nd edit screenpowerapps2.PNGlast edit screen(Submit)

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: submit items with the same data source in different screen

Hi @Sara328,

 

Your scenario (Use Multiple EditForm control to update one Record to the same data source) will not work.

Please see my response in the following thread:

Submit multiple forms

 

For the patch() function, it will only keep the value of the last records, if the previous records are the same one.

Your scenario would match the syntax below:

PatchDataSourceBaseRecordChangeRecord1 [, ChangeRecord2, … ])

For the change record, it should be one or more records (in your scenario, it should be EditForm3.Updates and EditForm2.Updates ) that contain properties to modify in the BaseRecord. Change records are processed in order from the beginning of the argument list to the end, with later property values overriding earlier ones.

Function reference:

Patch function in PowerApps

 

Regards,

Michael

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

View solution in original post

1 REPLY 1
Community Support Team
Community Support Team

Re: submit items with the same data source in different screen

Hi @Sara328,

 

Your scenario (Use Multiple EditForm control to update one Record to the same data source) will not work.

Please see my response in the following thread:

Submit multiple forms

 

For the patch() function, it will only keep the value of the last records, if the previous records are the same one.

Your scenario would match the syntax below:

PatchDataSourceBaseRecordChangeRecord1 [, ChangeRecord2, … ])

For the change record, it should be one or more records (in your scenario, it should be EditForm3.Updates and EditForm2.Updates ) that contain properties to modify in the BaseRecord. Change records are processed in order from the beginning of the argument list to the end, with later property values overriding earlier ones.

Function reference:

Patch function in PowerApps

 

Regards,

Michael

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

View solution in original post

Helpful resources

Announcements
thirdimage

Power Platform 24

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

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