How do I get the messages from the server?

Stimulsoft Reports.PHP discussion
Post Reply
chopper64
Posts: 26
Joined: Mon Dec 20, 2010 2:33 am
Location: Berlin

How do I get the messages from the server?

Post by chopper64 »

The swf file overlaid so the HTML version of the browser. So to speak.

Is being given to perform the functions of the communication between the swf and server (eg Load Configuration, load language) provide a possibility, notifications of PHP in a message window of the designer / viewer to spend?

For example, like this:

Code: Select all

index.php?stimulsoft_client_key=.....&stimulsoft_message_key =%message_text%....
This would allow the content of %message_text% coming from servers easily be passed to the client.

If one looks at the HTML output in Firebug, so you can see the messages but they are not passed by the swf.

For developers ok but for users....?
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

How do I get the messages from the server?

Post by Vladimir »

Hello,

Could you please describe in more detail: what messages, when and where you want to display them?

Thank you.
chopper64
Posts: 26
Joined: Mon Dec 20, 2010 2:33 am
Location: Berlin

How do I get the messages from the server?

Post by chopper64 »

Problem:
If the SQL Server or Apache / PHP to generate an error, this is indeed the HTML of the page displayed, the user can not see this message, however, as the Flash application (Designer / Viewer), this issue is superimposed. The developer can still determine, however, users do not even

My suggestion:
Generate error messages in the scripts themselves or exceptions abfngen (try. .. catch) and forward the message text output to the Flash application and. The way which is in use with the data report made ​​at Sti_LoadReport ($...)
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

How do I get the messages from the server?

Post by Vladimir »

Hello,

A similar mechanism is already there. If an internal error occurred on the server, you can send the following line instead of the data:

Code: Select all

ServerError:Any error message
In this case, a dialog box with an error will be displayed.

Thank you.
Post Reply