How to Catch response value of response.setAlert();

Hello Community !
I want to catch the alert response value and perform some action of this value .
How can I catch this value in a Service ?

Either response will be True or False !

Just give the response (ActionResponse) variable from your controller to your different services ?

you want to catch on client side or in action?

I want to catch it on Client side.
When Alert Generated , I want to perform some action if alert value is OK or True and other if alert is Cancel of False.

you can do it easily,

response.setValue(« alertResponse », alertResponse);

and based on that, you can call further actions,

but why not you call it from controller directly, if no further change of input

Ok Sir,
Let me try this one …