- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-13-2018 05:45 AM
Befor business rule is failing to abort action, It is displaying error message " Please create a time card before closing the task" But it is not stopping task closure. Please let me know what might be the issue.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-13-2018 10:29 PM
tried this "current.setWorflow(false)" but no luck, have implemented alternative solutionthrough onsubmit client script and close UI action

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-13-2018 05:50 AM
just adding one point here.
Note: setAbortAction() can only be executed from the same scope as the record whose action is being aborted. current.setAbortAction
is not honored if executed in a business rule that is defined in a different scope.
can you confirm here the scope of your application
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-13-2018 05:51 AM
Are you sure it's not stopping the task closure? When you see the error message try reloading the form. With the abort action it will revert you to the form, all the field changes you made before attempting to submit will still be in place but won't have been submitted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-13-2018 07:42 AM
Try commenting out the "current.setWorflow(false)" lines.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-13-2018 10:29 PM
tried this "current.setWorflow(false)" but no luck, have implemented alternative solutionthrough onsubmit client script and close UI action