Skip to main content

Notifications

Community site session details

Community site session details

Session Id : YZ1FrKSylPOel+e0cAunFS
Power Apps - Building Power Apps
Unanswered

Gallery inside a component not showing data on first load

Like (0) ShareShare
ReportReport
Posted on 6 Sep 2022 08:42:15 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! 

 

 

 

 

  • Community Power Platform Member Profile Picture
    on 14 Sep 2022 at 12:12:01
    Re: Gallery inside a component not showing data on first load

    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).

  • LuizVicente Profile Picture
    984 Super User 2024 Season 1 on 08 Sep 2022 at 11:25:16
    Re: Gallery inside a component not showing data on first load

    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?

  • LuizVicente Profile Picture
    984 Super User 2024 Season 1 on 06 Sep 2022 at 16:49:26
    Re: Gallery inside a component not showing data on first load

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

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
MS.Ragavendar Profile Picture

MS.Ragavendar 20

#2
BCBuizer Profile Picture

BCBuizer 10 Super User 2025 Season 1

#2
LC-26081402-0 Profile Picture

LC-26081402-0 10

Overall leaderboard
Loading started