Pasing Parameters JSViewer .Net

Posted by: alberto.santana on 15 July 2021, 3:30 am EST

    • Post Options:
    • Link

    Posted 15 July 2021, 3:30 am EST

    Hi, i have an issue when i send the parameters to openReport, i obtain this error message from the Backend…

    The JSON value could not be converted to System.Collections.Generic.Dictionary`2[System.String,GrapeCity.ActiveReports.Web.Viewer.I.+ParameterValuesQuery+RequestFields]. Path: $.request | LineNumber: 0 | BytePositionInLine: 103.
    
    

    Im currently using this code on Javascript

    report = "CycleSummaryReport.rdlx"
    viewer.openReport(report, [{ name: 'CycleId', values: [Cycle] }, { name: 'Version', values: [Version] }, { name: 'WorkOrder', values: [WorkOrder] }, { name: 'RecipeId', values: [Recipe] }])
    

    PD: The variables always contain data…

  • Posted 15 July 2021, 6:39 pm EST

    Hello,

    I have tested the following syntax and it works fine at my end:

    viewer.openReport(“ParentReport.rdlx”, [{ name: ‘ReportParameter1’, values: [‘Test1’] }, { name: ‘ReportParameter2’, values: [‘Test2’] }, { name: ‘ReportParameter3’, values: [‘Test3’] }, { name: ‘ReportParameter4’, values: [‘Test4’] }]);

    Could you please share the report with me so that I can check at my end.

    Thanks,

    Mohit

  • Posted 16 July 2021, 1:39 am EST

    Hello,

    Yes let me share the report with you

  • Posted 16 July 2021, 1:40 am EST

  • Posted 19 July 2021, 5:07 am EST

    Hello,

    I deleted datasets and control and preview the report only with parameters and it works fine at my end. Is it possible to share the dummy db?

    Thanks,

    Mohit

  • Posted 31 January 2023, 12:40 am EST

    I am facing same issue after removing query param it’s working fine but with parameters I am facing same issue

  • Posted 31 January 2023, 11:36 pm EST

    Hi Akshay,

    We tried to replicate the behavior on our end by passing parameters as

    viewer.openReport("RdlReport1.rdlx", [{ name: "TestParam", values: ["TestValue"] }, { name: "TestParam1", values: ["TestValue1"] }]);

    However, we were not able to replicate the behavior on our end. Please find attached a sample for the same.

    Could you please share a sample replicating the issue so we could further investigate the same?

    Regards,

    Anand

    JSViewer_MVC.zip

  • Posted 1 February 2023, 9:56 pm EST

    Hi Anand

    Thanks for help, but i have another query I have license for Activereport. Net professional 16 can i use same sample for this?

  • Posted 1 February 2023, 9:56 pm EST

    Hi Anand

    Thanks for help, bi have another query I have license for Activereport. Net professional 16 can i use same sample for this?

  • Posted 2 February 2023, 3:58 pm EST

    Hi Akshay,

    Yes, the sample I have attached is built using ActiveReports 16. You may use your ActiveReports 16 license to run the same.

    Regards,

    Anand

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels