I have a very simple If statement for the DisplayMode of a button:
If(IsBlank(gblCurrentShipment.documentation),
DisplayMode.Disabled,
DisplayMode.Edit)
It works as intended when I am using the application in Edit mode.
However, when I Play the application, gblCurrentShipment.documentation is always blank. This variable is set on the previous screen as follows:
Set(
gblCurrentShipment,
LookUp(
'[dbo].[shipment]',
id = galShipmentHS.Selected.id
)
);
Why am I getting different behavior between Play and Edit using the same versions?
This functionality was working fine for weeks previously and nothing was changed on either the app end or the data source end.