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

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