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 / Gallery inside a compo...
Power Apps
Unanswered

Gallery inside a component not showing data on first load

(0) ShareShare
ReportReport
Posted on by 90

Hi all, 

I am stuck on this weird issue for 2 days and I really hope someone can unstuck me here...thanks in advanced! 

 

I built a reusable gallery component to display the BOM (bill of material) information for each work order(WOPRecord). Here is how my data structure looks like: 

 

 

{
 WorkOrderId: "M12345",
 Status: 0,
 IsUrgent: true,
 BOM: Table({
 PartNumber: "7815-sample",
 PartName: "Part name 1",
 AvailableInventory: 123,
 Coefficient: 1,
 BinNumber: "2A-1"
 },
 {
 PartNumber: "7816-sample",
 PartName: "Part Name 2",
 AvailableInventory: 456,
 Coefficient: 2,
 BinNumber: "2B-1"
 } 
 )
}

 

 

 

My cmpBOMWindow component has an input property WOPRecord of type record and an output property of IsVisible of type boolean. The dataSource of gallery inside the componet is set to cmpBOMWindow.WOPRecord.BOM. 

 

(image deleted)

 

On the screen, the component is triggered(shown) by clicking a button inside a gallery (displaying all the work orders). 

Here is where the problem is...everything works and shows fine until i close the window and reopen it again....the data no longer shows in the component gallery but will show again when i trigger another click. However, on my test lable, it shows that my data is presented there inside the gallery....it's just not showing and i don't think it's a visibility issue....

 

(image deleted)

 

Any idea, thought, comment is appreciated! 

 

 

 

 

Categories:
I have the same question (0)
  • LuizVicente Profile Picture
    984 Super User 2024 Season 1 on at

    Hello. Let's find the problem together.
    What is the code in the yellow circle click?

  • LuizVicente Profile Picture
    984 Super User 2024 Season 1 on at

    I did a similar test too and it worked fine. It's certainly something in the component...

     

    In the first click on the yellow circle (when no data is returned) did you check if the variable contains any information or is it blank?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I had a issue with a gallery like this aswell had to delete it and redo it and it worked. Don't ask me why at this point i've given up on the reliability of powerapps / studio. If smth doesn't work, first make a new screen/app test it and if its working just redo it. It sucks but well what can you do (well actually lastsubmit (its a form but well) giving such a issue on one project and deleting it will make everything a red mess but well i haven't given up on that one may we get lucky).

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
11manish Profile Picture

11manish 547

#2
WarrenBelz Profile Picture

WarrenBelz 444 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 322

Last 30 days Overall leaderboard