I have run this over & over. My OnVisible runs a flow to get a collection. The collection is clearly visible in View:
This is the line of code that gets it:
If(
First(colRowCount).rowcount > 0,
Notify("Delivery records: " & First(colRowCount).rowcount);
ClearCollect(
colDeliveryDetails,
IPL_GoodsInBatchDeliveries.Run(
First(colItems).thOurRef,
First(colItems).stCode
)
);
Notify("Delivery record (1) ID: " & First(colDeliveryDetails).ID);
,
Notify("Delivery records: " & First(colRowCount).rowcount);
Clear(colDeliveryDetails)
);When I run it, it displaiys the notification: Delivery records: 1.
The record should be visible in the gallery:
The message in red, 'There are no deliveries to display' is driven by this line:
If(CountRows(galDeliveryDetails.AllItems) = 0,"There are no deliveries to display")In the debugger, the value manages to be both true and false at the same time!!!
Value is 1
So why is this message displayed, and the gallery items missing?

Report
All responses (
Answers (