Is there any provision to display message on Event of update of affected item table (Except message in history table) of object? because in agile 9.3.4 it does not show message

because in agile 9.3.4 it does not show message even if we return EventActionResult(event ,new actionresult(0,message));
or can we open new popup in agile web client window using any program please help …!

Agile Angel Asked on January 24, 2016 in Tools.
Add Comment
3 Answer(s)

Did you configured the event as PRE event? In this case, you can block the execution of the update and return (in case of error) a new ActionResult(EXCEPTION, new Exception(message));

return new EventActionResult(request, new ActionResult(ActionResult.EXCEPTION, new RuntimeException("An Error Occurs"));

this should be displayed as error message to the user but only in case of Pre event with stop execution in case of error

Agile Angel Answered on January 24, 2016.
Add Comment

Thanx Antonio for reply,
I have tried using as mentioned above 
block the execution of the update and return (in case of error) a new ActionResult(EXCEPTION, new Exception(message));
but it didn’t work.
Is there any way in case of successfully running my px to display message?

Agile Angel Answered on January 25, 2016.

I have updated my answer with correct code. It was just an example but now I have added correct way to declare it.
This is just for Unsuccessfull message (when an exeption occurs) and the event has to be BLOCKED in case of error or to avoid that update is completed.
The message for successfull PX is visible only in the history. A success message can be displayed only when the PX is triggered manually from the Action menu

on January 25, 2016.
Add Comment

Yeah, Antonio its working fine as you mentioned in error (Blocked) event.
Thanx.

Agile Angel Answered on January 25, 2016.

great 😉

on January 25, 2016.

Hey Antonio, How to print error message on  new line in above case?

on January 27, 2016.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.