Hello,
I have a form which after it is submitted i want to popup a GUI for confirmation.
see the following code in the ON SUCCESS property of the form:
frmLabEntryClosure.OnSuccess:
Set(varLabEntry, frmLabEntryClosure_1.LastSubmit);
Notify("הטופס נשמר בהצלחה", NotificationType.Success);
ViewForm(frmLabEntryClosure_1);
If(
frmLabEntryClosure_1.LastSubmit.'סטטוס קריאה' = 'סטטוס קריאה (כרטיסי מעבדה)'.'עבודה הסתיימה' && frmLabEntryClosure_1.LastSubmit.'חשבונית הופקה' && frmLabEntryClosure_1.LastSubmit.'פריט נארז כראוי',
UpdateContext({cxtAccountStatus: "Invoiced", cxtShowAccountingApproval: true}),
(frmLabEntryClosure_1.LastSubmit.'סטטוס קריאה' = 'סטטוס קריאה (כרטיסי מעבדה)'.'הצעה נשלחה' || frmLabEntryClosure_1.LastSubmit.'סטטוס קריאה' = 'סטטוס קריאה (כרטיסי מעבדה)'.'הזמנה התקבלה - חלקים בהזמנה') &&
frmLabEntryClosure_1.LastSubmit.'התקבלה הזמנה' && frmLabEntryClosure_1.LastSubmit.'פריטים במלאי',
UpdateContext({cxtAccountStatus: "Ordered in Stock", cxtShowAccountingApproval: true}),
frmLabEntryClosure_1.LastSubmit.'סטטוס קריאה' = 'סטטוס קריאה (כרטיסי מעבדה)'.'הצעה נשלחה' && frmLabEntryClosure_1.LastSubmit.'התקבלה הזמנה' && !frmLabEntryClosure_1.LastSubmit.'פריטים במלאי',
UpdateContext({cxtAccountStatus: "Ordered Not in Stock", cxtShowAccountingApproval: true}),
frmLabEntryClosure_1.LastSubmit.'סטטוס קריאה' = 'סטטוס קריאה (כרטיסי מעבדה)'.'ממתין להצעה' && frmLabEntryClosure_1.LastSubmit.'הצעה נשלחה',
UpdateContext({cxtAccountStatus: "Quoted", cxtShowAccountingApproval: true})
);
some of the word are in hebrew but generally the IF statement should popup a GUI via "cxtShowAccountingApproval"
This workd when i simulate (F5) on the studio but not on the mobile app.
Thanks
Set(varSpinner, false)