Please refer to Mainflow\JobMainInfo
In this screen, I have added delete button, But the table structure here is one JobMaintenance has many JobDetailTasks, and if there is job tasks here the job cannot be deleted as below.
Would please help check "Delete Job" Action and guide how to delete the tasks inside if I click delete the job here in one click. Thanks.
Hi @Winnie Lam ,
You can do following steps:
Hello Winnie,
If you have Protect Delete rule for reference key then its not passible to delete the record.
https://success.outsystems.com/documentation/11/developing_an_application/use_data/data_modeling/entity_relationships/delete_rules/
You can check above documentation on delete rule.
As mentioned by Puja, you need to delete the record for reference key first then the other record.
Best Regards,
Komal
Hello @Winnie Lam ,
I have analyzed your OML. First delete all the JobTasks corresponding to the maintenance id. Then delete the JobMaintenance. It will not give you any errors.
I hope this will help you!
Have a great day
Thanks & Regards,
Sudip Pal