Hi @v-jefferni
Thanks for your response.
Im running multiple phones. Couple iPhones, couple android phones, I dont think its in the phones.
One of the diffrences is that I am using MySQL instead of MSSQL.
If I want to patch a signature & another column, it doesnt patch the signature and it does patch the other column.
Right now I found out aswell that its only the first entry after a push which is not getting saved. If I do push the app and I want to store 9 different entry's, 8 will be saved correctly, but the first one is missing.
What I've done so far; make the code longer by checking if a signature is made.
In the last If i'm checking if the base64 is exactly the same as the output which should have been stored in the db.
There it goes to the notification that a problem has occured.
This one is frustrating..
Reset(signatureEmpty);;
Set(
sigImage;
JSON(
signatureInput.Image;
JSONFormat.IncludeBinaryData
)
);;
Set(
sigEmpty;
JSON(
signatureEmpty.Image;
JSONFormat.IncludeBinaryData
)
);;
If(
sigImage <> sigEmpty;
Patch(
'[***].[malfunctionform]';
LookUp(
'[***].[malfunctionform]';
id = Value(DataCardValue29.Text)
);
{signature: Text(sigImage)}
);
Notify("NOPE!")
);;
If(
LookUp(
'[***].[malfunctionform]';
id = Value(DataCardValue29.Text);
signature
) = Text(sigImage);
Patch(
'[***].[malfunctionform]';
LookUp(
'[***].[malfunctionform]';
id = Value(DataCardValue29.Text)
);
{closed: 1}
);;
Notify("Storing is succesvol goedgekeurd!") && Reset(signatureInput) && Navigate(
browseMalfunctions;
ScreenTransition.Fade
);
Notify(
"Er is een fout opgetreden. Probeer opnieuw";
NotificationType.Error
) && Reset(signatureInput) && Navigate(
browseMalfunctions;
ScreenTransition.Fade
)
)