Restricting a user from posting a journal if the user has edited the journal.
There is a requirement wherein a journal should not be posted by a user who has modified the journal.
In order to achieve this functionality, I tried to disable the "Post" button in WHEN-VALIDATE-RECORD trigger of both header and line block and checking whether :SYSTEM.FORM_STAUS='CHANGED'
When I navigate from Header block to line block, the button gets disabled.
But if I modify the header block and straightaway click on "Post" button, the journal gets posted even though WHEN-VALIDATE-RECORD trigger gets fired.
Please let me know if anyone has come across a similar requirement.
Thanks,
Krishna