cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Macwin
Resolver I
Resolver I

Updating Selected Record using Patchfunction

Its almost working. 
Its loading the gallery selected record (binded with cds) to my edit forms but it always patches the wrong data to my selected record.

My Patch functions looks like this 

 

If(
    Connection.Connected;
    Patch(
        CDS_SOURCE;
        GalleryPage0Overview.Selected;
        DataFormPage1.Updates;
        DataFormPage2.Updates;
        DataFormPage3.Updates;
        DataFormPage6.Updates;
        DataFormPage2Bemerkung.Updates;
        DataFormPage3Bemerkung.Updates
    )
);;
Refresh(CDS_SOURCE);;
Navigate(
    [@Overview_Screen];
    ScreenTransition.Cover
)

 

DataFormPageX are my forms, They are in different screens.

 

Do I need to use something like lookup for the 2nd parameter in the patch function? I want to update the records about the forms itself.  

 

1 ACCEPTED SOLUTION

Accepted Solutions
Macwin
Resolver I
Resolver I

Sorry, Im really stupid. I selected the wrong forms

View solution in original post

1 REPLY 1
Macwin
Resolver I
Resolver I

Sorry, Im really stupid. I selected the wrong forms

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

PA Community Call

Power Apps Community Call

Next call is happening on April 21st at 8a PST.

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!

secondImage

Experience what’s next for Power Apps

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

Users online (39,234)