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 / 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

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 477

#2
WarrenBelz Profile Picture

WarrenBelz 341 Most Valuable Professional

#3
11manish Profile Picture

11manish 317

Last 30 days Overall leaderboard