Ratikant - Tuesday, April 26, 2011 6:03 AM:
Hi ,
Is there any way to give an alert/notification on a server side event ?
Please suggest.
Thanks ,
Ratikant
drnorthcott - Tuesday, April 26, 2011 8:24 PM:
The only way I have tried is by returning an error from the server method.
eg.
Dim myInnovator As Innovator = Me.getInnovator()
Return myInnovator.newError("Your message here")
If you try msgbox("") in a vb method then the innovator message errors at you, giving some alternate ideas but i've never tried those yet.
Ratikant - Wednesday, April 27, 2011 1:25 AM:
Return myInnovator.newError("Your message here") will stop the execution of the program . My requirement is more like : Give the alert to the user , then proceed for further execution . i tried with the MsgBox syntax . its giving me error while executing . Its working fine with the client side event but failing at the server side .
Brian - Saturday, April 30, 2011 8:24 AM:
Just remember that the server side is not where the client is. It doesn't have a User Interface to interact with.
The only way I could imagine doing this is to break the server event into segements each of which is called by a client method (client calls generic method).
Return something meaninful from the generic method and evaluate this to advise the user.
THen call the next generic method.
Message box will not work since you don't have a window/user interface.
Cheers,
Brian.