Page 1 of 1

report does not return the view through the GetReport method

Posted: Mon Sep 21, 2020 3:58 pm
by Alejandro323
regards
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);

}

Re: report does not return the view through the GetReport method

Posted: Mon Sep 21, 2020 4:00 pm
by Alejandro323
the method GetReport call itself and there's no parameters
the method GetReport call itself and there's no parameters
2020-09-21_10h33_08.png (21.74 KiB) Viewed 1140 times

Re: report does not return the view through the GetReport method

Posted: Tue Sep 22, 2020 3:19 pm
by Lech Kulikowski
Hello,

Please send us a sample that reproduces the issue for analysis.

Thank you.