I have a requirement, where a warning message is to be shown to the user when he presses the Approve button of a notification.
I know that through post notification function, validations for a particular notification can be performed and an error message can be shown to the user using RESULT := 'ERROR: error_msg'
But can a warning message be shown ? If yes how?
Thanks in advance.
I would try by using a parameter to tell whether the warning message for the notification has been displayed. First time the notification is being approved the function raises the warning message and sets that attribute to indicate the warning has been displayed. Next attempt to respond the notification your function will check that attribute has been set and will do nothing, just let the notification go responded.
You might as well present the warning message in the notification body and introduce another attribute to get the acknowledgement from the user. Only when that attribute is set to YES (acknowledge) will the post-notification function actually let the notification be approved, otherwise an error is presented for the user to acknowledge.
Hope this helps