Hello everyone,
I have this formula in a button on my form. The form is displayed when the user clicks on a gallery record. When I press the button, what I'm actually doing is changing the status of the record. However, for some unknown reason, after pressing the button, all the form fields disappear, and instead, the message 'No item to display' is shown.
My goal is that after the updated record notification is displayed, the fields remain on the form and are refreshed. Currently, the only field that changes is the status, which is reflected through the button, as the button is disabled when the status changes.
Do you have any ideas on how to solve this challenge?
Thank you,
Formula:
Patch(
'matter engagement letters',
varElid,
{
'Engagement Letter Status': 'Engagement Letter Status Choice'.'Engagement Letter saved to DMS',
'Status Date': Today()
}
);
Set(
varElid,
LookUp(
'matter engagement letters',
'matter engagement letter' = GUID(Param("elid"))
)
);
Refresh('matter engagement letters');
Navigate(
scr_Assistant,
ScreenTransition.None
);
Notify(
"Record has been updated",
NotificationType.Success
)