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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Unable to collect deta...
Power Apps
Unanswered

Unable to collect details from a editable repeating gallery

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I am working on an editable repeating gallery, I have my details from Sharepoint but I have empty fields which would be filled up by the user if they need to, I am using a toggle control to determine if the field does not match but the toggle is turning on if the field and the sharepoint column is both empty which should not be. Also, if I add another condition on the toggle  it would only turn on if the last condition in the code is fulfilled. 

 

Here's the OnChange code for my text control

 

Patch(colUpdateData, ThisItem, {'INC Number': txtAssetINC.Text, Model:txtAssetModel.Text});

 

 

Here's the code for my toggle

 

If(ThisItem.'INC Number' <> txtAssetINC.Text || ThisItem.Model <> txtAssetModel.Text, true)

 

 

Here's the code for saving the changes on Sharepoint

ForAll(Filter(galExitClearance.AllItems, Toggle1.Value = true), Patch('Exit Clearance List', ThisRecord, {'INC Number': txtAssetINC.Text, Model:txtAssetModel.Text}))

 

 

Categories:
I have the same question (0)
  • Gerard Simpson Profile Picture
    2,987 Moderator on at

    Hi, I would use this much slicker patter Reza showcases for this instead: https://youtu.be/76RJyaoW0BQ?si=5rWUp0ks-tcQvfT6 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard