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 / Nested Gallery Patch C...
Power Apps
Unanswered

Nested Gallery Patch Collection

(0) ShareShare
ReportReport
Posted on by 27

In my App I have a gallery called "galEmployee"  I use that gallery to collect detailed records for that employee in a Nested Gallery called "galLostTime".  I use the nested gallery to pull the details into a form that will be used to edit the detailed records.  The form is working as expected.  I'm having issues with my Patch writing back to the collection.  Seems that it has to do with the Nested Gallery.  I tried using labels outside of both galleries to see the selected data inside the nested gallery to confirm that I'm seeing the correct data.  I can not get the data to return to the label which leads me to believe the Patch is having the same issue.  Any thoughts on getting the items from the form to write back to the collection>

Patch(
//'[dbo].[_LostTimeData]',
colFilteredLostTime,
galLostTime.Selected,
{
//LostTimeCodeID: Dropdown_LostTimeCode.SelectedText.Description,
LostTimeHrs: Value(TextInput_LTHours.Text),
LostTimeComments: TextInput_LTComment.Text
}
);
ResetForm(Form_LostTime);
Select(Button_LoadList)

Categories:
  • alrezac Profile Picture
    Microsoft Employee on at

    Hi,

     

    Looking through your code here it looks fine to me. I'm not exactly certain what is causing this issue. Does any other communities members have any idea? Otherwise, this might be a good question to bring to the PowerApps helpdesk team. I'll include a link below on creating a ticket with them if you would like to go down that route.

     

    If you would like to create a ticket with Microsoft Customer Support here is a link on how to do so: https://docs.microsoft.com/en-us/power-platform/admin/get-help-support

     

    Regards,

     

    Alex

     

    -------

     

    Community Support Team _ Alex Rezac
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • RajnishP Profile Picture
    146 on at

    Hi @Shippen70 , Did you got fix for this. I am also facing same issue. It is working for First block of Nested Gallery but not working for rest of the Blocks.

     

  • Shippen70 Profile Picture
    27 on at

    I was able to resolve the issue.  In the OnSelect Properties of the Nested Gallery I created a variable Set(varItem, ThisItem).  This variable collects all the available fields in the nested gallery when a record is selected.  In the Item Property on the form add the variable varItem.  You can then use the items in the variable to create the fields in the form.  I hope that makes sense.  

  • RajnishP Profile Picture
    146 on at

    Thanks @Shippen70  for reply,

    Just Now I tried it. Same result. Not working.  It must work, but I checked varItem also its getting that record as well. But Icon OnSelect not behaving as expected. Only first block(Group) it is working for rest of the block(Group) it's not working at all.

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 258

#3
Mohsin Ali Profile Picture

Mohsin Ali 231

Last 30 days Overall leaderboard