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

Patch all records from a gallery to the same column of SP

Hi All,

I am hoping someone can show me the way to patch a calculated label of a gallery to its corresponds row of the SP 

I have a gallery in my app (Gallery1) that is showing a Sharepoint list (LINEUP); in this gallery I have a Calculated label (Label46) that calculate the days ahead of the vessel arrival, what I need is Patch all calculated records of this gallery label to this corresponds row of the sharepoint list (column "DAYSTO") .
I have read about using the control "forall" but I am not able to make it work.

 

111.png

 

Sharepoint list where I need to patch each record

 

1112.png

 

 

Hope you can give me a hand with it!

 

Thank you

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
BlessedCobba
Resolver I
Resolver I

Hi @fcastroChile
can you please paste in what you have tried?

forAll loop is the right answer, to achieve your outcome
The tricky part is the lookup to find the correct row to patch the data it into, by the looks of the example you might be able to match something like the name and eta to find the right row in the datasource, then patch the days to gallery label into that column and row

ForAll(Gallery1,
//repeats for all rows in the gallery
    Patch(
        LINEUP,
//Patch to data source
        LookUp(LINEUP, 'Nave' = (GalleryLabel) && 'ETA' = (GalleryLable),
//Use lookup to match Nave & ETA from the gallery with row in datasource                 
        {Daysto: (galleryLabel}
//Update daysto column with data from the gallery
    )
)



 

View solution in original post

3 REPLIES 3
mahoneypat
Solution Sage
Solution Sage

I have read  that page but do not answer my query. 

 

Thank you anyway

BlessedCobba
Resolver I
Resolver I

Hi @fcastroChile
can you please paste in what you have tried?

forAll loop is the right answer, to achieve your outcome
The tricky part is the lookup to find the correct row to patch the data it into, by the looks of the example you might be able to match something like the name and eta to find the right row in the datasource, then patch the days to gallery label into that column and row

ForAll(Gallery1,
//repeats for all rows in the gallery
    Patch(
        LINEUP,
//Patch to data source
        LookUp(LINEUP, 'Nave' = (GalleryLabel) && 'ETA' = (GalleryLable),
//Use lookup to match Nave & ETA from the gallery with row in datasource                 
        {Daysto: (galleryLabel}
//Update daysto column with data from the gallery
    )
)



 

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.

Top Solution Authors
Top Kudoed Authors
Users online (59,336)