setabortaction in before business rule is not stooping record save

venkata satish
Tera Expert

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.

find_real_file.png

1 ACCEPTED SOLUTION

venkata satish
Tera Expert

tried this "current.setWorflow(false)" but no luck, have implemented alternative solutionthrough onsubmit client script and close UI action

View solution in original post

5 REPLIES 5

Harsh Vardhan
Giga Patron

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

Dubz
Mega Sage

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.

Jim Coyne
Kilo Patron

Try commenting out the "current.setWorflow(false)" lines.

venkata satish
Tera Expert

tried this "current.setWorflow(false)" but no luck, have implemented alternative solutionthrough onsubmit client script and close UI action