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 Platform Community / Forums / Power Apps / Patching Gallery Check...
Power Apps
Answered

Patching Gallery Checkbox Back To OneDrive Excel

(0) ShareShare
ReportReport
Posted on by 49

Hello,

 

I can't work this one out:

 

OscarW_2-1674745404501.png

 

So the current setup is a gallery recalling a Excel table. There is a hidden label (MTGTF) that recalls a text value from an Excel column Completed which is hidden. The text value is either True/False. 

 

The check boxes then reads the hidden label and updates as:

 

If(MTGTF.Text = "True", true, false)

 

But I want this to be interactable and able to patch the tick as TRUE and a lack of tick as false as it's a task/timetable complete app.

 

My current OnSubmit code is:

 

 

 

Patch(Timetable,
 ForAll(Filter(Gallery2.AllItems, MTGCheck.Value),
{
 Completed: If(MTGCheck.Value = true, "TRUE", false, "False")
 }
 )
)

 

 

 

Thanks!

 

Categories:
I have the same question (0)
  • Oscar-W Profile Picture
    49 on at

    So I'm somewhere further with this topic but not there completely.

     

    I changed the database to a Sharepoint List. and the OnSubmit code is now:

    ForAll(Gallery2.AllItems, 
    Patch('R2R Timetable', Gallery2.Selected,
    {
     Completed: ThisRecord.MTGCheck.Value
     }
     )
    )

     

    So this only updates the last selected value (last one ticked or unticked). I tried taking out the record selection of patch completely to just: 

    ForAll(Gallery2.AllItems, 
    Patch('R2R Timetable',
    {
     Completed: ThisRecord.MTGCheck.Value
     }
     )
    )

    but then it doesn't do anything this way.

     

    I suppose I just don't understand why the ForAll is not iterating how I would expect it to.

  • Verified answer
    Oscar-W Profile Picture
    49 on at

    This was the patch:

     

    ForAll(Gallery2.AllItems, 
    Patch('R2R Timetable', ThisRecord,
    {
     Completed: ThisRecord.MTGCheck.Value
     }
     )
    )

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 494

#2
WarrenBelz Profile Picture

WarrenBelz 352 Most Valuable Professional

#3
11manish Profile Picture

11manish 323

Last 30 days Overall leaderboard