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!
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).
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?
Hello. Let's find the problem together.
What is the code in the yellow circle click?
MS.Ragavendar
20
BCBuizer
10
Super User 2025 Season 1
LC-26081402-0
10