ActiveReports v13.2 Preview report calls LocateDataSource twice

Posted by: mjcwan on 6 September 2019, 1:12 pm EST

    • Post Options:
    • Link

    Posted 6 September 2019, 1:12 pm EST

    ActiveReports v13.2.18250.0

    JSViewer click the Preview button calls LocateDataSource twice

    app.UseReporting(config =>
    {
    	config.LocateDataSource = e =>
    	{
    		if (e.DataSet.Name == "DataSet1")
    		{
    			using (var con = new SqlConnection("connectionString"))
    			{
    				var table = new DataTable();
    				using (var reader = con.ExecuteReader("select * from table"))
    				{
    					table.Load(reader);
    				}
    				return table;
    			}
    		}
    		return null;
    	};
    });
    
  • Posted 8 September 2019, 3:39 pm EST

    Hello,

    I have tested at my end found that LocateDataSource only fired once when we load the report directly in the JSViewer. However, on clicking the “Refresh” button of JsViewer, “LocateDataSource” fired twice.

    Could you please tell what do you mean by “Preview button” here. As there is no Preview button in the JSViewer. Could you please refer to the attached sample and modified the sample so that I can replicate your exact issue at my end and escalate it to our developer team.

    Thanks,

    Mohit

    JSViewer_MVC (2).zip

  • Posted 8 September 2019, 4:19 pm EST - Updated 30 September 2022, 8:33 am EST



    v13.2 “Refresh” or “Preview”, “LocateDataSource” fired twice.

    v13.1 “LocateDataSource” only fired once.

  • Posted 8 September 2019, 5:06 pm EST

    Hello,

    On using parameter in my report, “LocateDataSource” fired only once in case of preview and refresh. Please refer to the attached video.

    Could you please check with the attached sample and share the result with me. If possible, please share the striped down with me.

    Thanks,

    Mohit

    JSViewer_MVC (3).zip

    vid_Event.zip

  • Posted 8 September 2019, 7:33 pm EST

  • Posted 8 September 2019, 7:47 pm EST

    Hello,

    Thanks for the sample.

    I am able to reproduce the issue at our end. I will escalate the issue to our development team(275536) and inform you once I get any reply from them.

    Thanks.

  • Posted 9 September 2019, 4:30 pm EST

    Hello,

    Request to please confirm do you need a hotfix for this issue?

    Thanks,

    Mohit

  • Posted 9 September 2019, 5:45 pm EST

    Thanks,

    I confirm need a hotfix .

  • Posted 9 September 2019, 5:50 pm EST

    Hello,

    I have forwarded your request to the development team.

    Thanks,

  • Posted 17 September 2019, 5:29 pm EST

    Hello,

    Issue is solved in the latest hotfix. You can download the same from the following link:

    http://cdn.grapecity.com/ActiveReports/AR13/hotfixes/ActiveReports-v13.2.18427.0.msi

    Thanks,

    Mohit

  • Posted 17 September 2019, 6:18 pm EST

    OK, thank you.

Need extra support?

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

Learn More

Forum Channels