Saving Templates and Reports
Posted: Thu Mar 24, 2011 11:32 am
How can you save in DesignerFx the amended report?
I call the Desinger so on
So I'm the designer with a given file. But the call-back Save_Report "which then calls sti_save_report ($ report) brings, but although the amended report with the name of the file from which you loaded the report added, is gone.
Also, the store in session variables is useless, because the callback seems to no longer point of the session ....
This should be at the server-side solution for storing the templates are changed something ....
What should you do?
First, they passed with session_id on index.php:
The following lines in the original index.php eränzen:
Then the values in session variables store. But watch out! Only when the values were also passed! Otherwise they are overwritten. DesignerFX.swf index.php calls again and again, for example. to load the language or data, etc..
Now you can access the session variables:
I call the Desinger so on
Code: Select all
http://localhost/sds/reportengine/index.php?stimulsoft_client_key=DesignerFx&stimulsoft_report_key=C:/data/sds/dokumente/template/UGS_TM_CAVERN_LEACHING/UGS_TM_CAVERN_LEACHING.mrt
Also, the store in session variables is useless, because the callback seems to no longer point of the session ....
This should be at the server-side solution for storing the templates are changed something ....
What should you do?
First, they passed with session_id on index.php:
Code: Select all
http://localhost/sds/reportengine/index.php?session=7700c67b58d8776555dad00f080384b9&stimulsoft_client_key =...
Code: Select all
$ session = sti_get_parameter_value ("session");
session_id ($ session);
session_start ();
$ client_key sti_get_parameter_value = ("stimulsoft_client_key");
$ report_key sti_get_parameter_value = ("stimulsoft_report_key");
Code: Select all
if (!empty($report_key)) $_SESSION['sds']['reportengine']['report_key'] = $report_key; # Name reporttemplatefile
if (!empty($client_key)) $_SESSION['sds']['reportengine']['client_key'] = $client_Key; # call mode
Code: Select all
function sti_save_report ($ report)
{
$ result = "-1";
$report_key = $ _SESSION['report_key'];
If (empty ($report_key))
{
$result = "0";
# Now save the changes in server-side file .....
}
else
{
$result = "File not Found";
}
return $result;
}