varWOWOInfoDetails,
Filter(
'Work Orders Work Order Info Details',
'Work Order ID' = DashBoardGallery_1.Selected.ID
)
);
ClearCollect(
varWOSP,
Filter(
'Work Orders Spare Parts',
'Work Order ID' = DashBoardGallery_1.Selected.ID
)
);
ForAll(varWOSP As wosp,
Collect(
varWOSPWOSPAPP,
Filter(
'Work Order Spare Parts Work Order Spare Part Approvals',
'Work Order Spare Part ID' = wosp.ID
)
));
IfError(RemoveIf(
'Work Orders',
ID = DashBoardGallery_1.Selected.ID
),
Notify(
"Can not delete work order",
NotificationType.Error
),
ForAll(varWOWOInfoDetails As wowo,
RemoveIf('Work Orders Work Order Info Details',ID=wowo.ID);
RemoveIf('Work Orders Info Details',ID=wowo.'Work Order Info Detail ID')
);
ForAll(varWOWOInfoDetails As wowo,
RemoveIf('Work Orders Info Details',ID=wowo.'Work Order Info Detail ID');
RemoveIf('Work Orders Work Order Info Details',ID=wowo.ID);
);
ForAll(varWOSP As wosp,
RemoveIf('Work Orders Spare Part Details','Work Order Spare Part ID'=wosp.ID)
);
ForAll(varWOSPWOSPAPP As wospwoapp,
RemoveIf('Work Orders Spare Part Approvals',ID=wospwoapp.'Work Order Spare Part Approval ID');
);
ForAll(varWOSPWOSPAPP As wospwoapp,
RemoveIf('Work Order Spare Parts Work Order Spare Part Approvals',ID=wospwoapp.ID);
);
ForAll(varWOSP As wosp,
RemoveIf('Work Orders Spare Parts',ID=wosp.ID);
);Notify(
"Deleted successfully",
NotificationType.Success
););
UpdateContext({showPopup: false});
Set(selectedID,DashBoardGallery_1.Selected.ID);
Set(
selectedID,
Blank()
);
Set(
varPrintProcessID,
Blank()
);
Set(
varPrintProcessPrintOrder,
Blank()
);
Set(
varPostingUnPotingProcess,
Blank()
);
Set(
varPostingUnPotingProcessPostingUnPostingForms,
Blank()
);