show dialog box when saving the report
show dialog box when saving the report
Hi, i wanna show dialog box to user and get report name and report type from the use before saving the report to database.is that possible with the report designer ?
tnx
chaminda
tnx
chaminda
show dialog box when saving the report
Hello,
As a way, you can describe on the SaveReport event in designer in your code:
Thank you.
As a way, you can describe on the SaveReport event in designer in your code:
Code: Select all
StiOptions.Engine.GlobalEvents.SavingReportInDesigner += new StiSavingObjectEventHandler(GlobalEvents_SavingReportInDesigner);
Re: show dialog box when saving the report
is there also a way to do this on MVC?
Re: show dialog box when saving the report
Hello,
Please try to set the following options:
or
In this case, report saving is carried out not in AJAX mode, and you can display your save report dialog.
Thank you.
Please try to set the following options:
Code: Select all
...
SaveReportTemplateMode = StiMvcDesignerOptions.SaveMode.Visible,
SaveReportTemplateAsMode = StiMvcDesignerOptions.SaveMode.Visible,
...
Code: Select all
...
SaveReportTemplateMode = StiMvcDesignerOptions.SaveMode.NewWindow,
SaveReportTemplateAsMode = StiMvcDesignerOptions.SaveMode.NewWindow,
...
Thank you.
Re: show dialog box when saving the report
i tried what you said vladimir but after i clicked save the page reloaded and displayed this:
H4sIAAAAAAAEAOy9B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/IrZ3/58AAAD//ypILTACAAAA
its the same when i use NewWindow it just opend on a new tab
H4sIAAAAAAAEAOy9B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/IrZ3/58AAAD//ypILTACAAAA
its the same when i use NewWindow it just opend on a new tab
Re: show dialog box when saving the report
Hello,
This string is a report that is sent by the designer on the server side. You need to return the desired view in the save report action, for example:
This view should contain the necessary controls, for example the report name input field and submit button.
Thank you.
This string is a report that is sent by the designer on the server side. You need to return the desired view in the save report action, for example:
Code: Select all
public ActionResult SaveReportTemplate()
{
StiReport report = StiMvcDesignerHelper.GetReportObject(this.Request);
return View("SaveDialog");
}
Thank you.