pravinnalkande - Monday, May 14, 2012 1:37 AM:
Dear All,
I want to show the custom html page from my server side c# written method.
How can i achieve this?
or instead of html page called I want to just show the message box.
e.g.
if(true)
{
show user message here
}
If anyone knows please help me on this topic.
Thanks & Regards,
Pravin
Yoann Maingon - Monday, May 14, 2012 8:01 AM:
I don't think you can open any client side popup from server side. What you should do is send back information that you handle client side to show the popup.
pravinnalkande - Monday, May 14, 2012 8:24 AM:
Hi Yoann,
Thanks for the quick reply.
I want to show the user messages like
"Please contact supervisor immediately"
So I have put the condition as below:
if(true)
{
Message.show("Please contact supervisor immediately");
}
else
{
//nothing do...
}
But in above case I am not able to show the message it give me error like:
Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application
What will be the problem? or any other solution to the user messages from server side method?
Regards,
Pravin
Brian - Monday, May 14, 2012 7:57 PM:
Hi Pravin
In a situation like this you need to call the server side method from a Client Side method or from an Action.
Then if the server side method returns an error (return innovator.newError("My new error details");) you can display the error to the user and have them take action.
You cannot show anything to the user directly from the server side.
Cheers,
Brian.
pravinnalkande - Monday, May 14, 2012 11:58 PM:
Hi Brian,
Thanks for quick reply
Now I am getting what exactly I need to do.
Cheers,
Pravin