Hi All,
I have text input in my screen which doesn't get refreshed when patched, unless I navigate between screens to see the updated value.
Text Input Default
If(Value(glbCurrentRecord1.'No of Openings Available')>0, glbCurrentRecord1.'No of Openings Available'&" openings left","Fully Occupied")
Patch formula when submit button is clicked
Set(
varPatchRecord,
Patch(
'Datasource',
glbCurrentRecord1,
{'No of Openings Available': Value(glbCurrentRecord1.'No of Openings Available') - 1}
)
);
Set(
glbCurrentRecord1,
varPatchRecord
);
I tried adding Refresh(datasource) and Reset(TextInput), but still I cant see the updated value on fly. If I navigate to another screen and come back to the current screen, I can see the updated value. Any idea how to solve this?
Please take note that I am not using any form. Just placed controls in the screen and patching based on button click