web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Unanswered

For All

(0) ShareShare
ReportReport
Posted on by 37
i all,

I would like it to make the patch on the tesdocum table, only if all the records of gallery1_1 are with the true flag
Instead it makes the patch even with only one record selected, as seen in the image.
Any advice?
 
ForAll(
    Gallery1_1.AllItems;
    If(
        Checkbox1_1.Value = true;
        Patch(
            MOVIMAG;
            LookUp(
                MOVIMAG;
                NUMERO = Trim(Gallery1_1.Selected.NUMERO) And RIGA = Gallery1_1.Selected.RIGA
            );
            {EVASION_SN: "S"};
            {EVASO: Gallery1_1.Selected.QUANTITA}
        );
        Patch(
            TESDOCUM;
            LookUp(
                TESDOCUM;
                NUMERO = Gallery1.Selected.NUMERO
            );
            {EVASO_SN: "S"}
        )
   
I have the same question (0)
  • ronaldwalcott Profile Picture
    3,866 Moderator on at
    Count the rows where the flag is selected and count all the rows. If they are equal then the flag has been selected in all the rows.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 762

#2
11manish Profile Picture

11manish 640

#3
Valantis Profile Picture

Valantis 548

Last 30 days Overall leaderboard