when called the GetReport method using postman to send the parameters
when I send the parameters the method repeats itself asking for the parameters again
attach code example
I appreciate any help.!!
----------------------------
Code: Select all
public ActionResult GetReport(int idOffice, int idOfficePrm, DateTime startPrm, DateTime endPrm)
{
StiReport report = new StiReport();
report.Load(StiNetCoreHelper.MapPath(this, "Reports/Reports.mrt"));
((StiSqlDatabase)report.Dictionary.Databases["MySql"]).ConnectionString = @"server=host;port=8548;user=Core;password=CorePass;database=db_Core;Datetime=True;";
report["idOfficePrm"] = idOfficePrm;
report["idOfficePrm"] = idOffice;
report["idOfAncest"] = 60;
report["startPrm"] = startPrm;
report["endPrm"] = endPrm;
return StiNetCoreViewer.GetReportResult(this, report);
}