Hello,
I think this is a standard question from everyone, but
I use a timer, but seems when taking to long for the patching, the timer has already ended but still busy with patching
Even i use without a timer and set in on the patching line, same result
The spinner disappear but patching still busy.
How can i fix that?
My code without timer is
Set(
varLoadingData;
true
);;
If(
Connection.Connected;
IfError(
Patch(
SharepointData;
LookUp(
SharepointData;
ID = Gallery3_2.Selected.ID
);
{
TYPE: "SEND";
UPDATEDATE: Text(
Now();
"[$-en-EN]d-m-yyyy"
);
USER: Left(
MyUserName;
Find(
" ";
MyUserName
)
)
}
);
Set(
ShowAccessError;
true
);;
Set(
varLoadingData;
false
);;
Set(
varError;
FirstError.Message
);
Reset(Gallery3_2);;
Refresh(SharepointData);;
Set(
varLoadingData;
false
)
);
Set(
varNoconnection;
true
);
Set(
varLoadingData;
false
)
)
My timer code is
OnTimerEnd
Set(varLoadingData;false)
AutoStart
varLoadingData
Duration
5000 (changed many times, but won't to take to long because when the patched has been done, i don't want to show the spinner anymore for nothing)
thank you