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!