LocateDataSource is not fired with then new dataset as preview the template

Posted by: sonnguyentruong87 on 12 March 2020, 2:36 pm EST

  • Posted 12 March 2020, 2:36 pm EST

    Hi

    I just added a new dataset into the template using javascript code, its query has the same datasource as the existing others. But when i tried preview the template, the LocateDataSource was not fired with the new dataset.
    Did i miss something ?
    My javascript code:

    content.DataSets.push({
    Fields: [
    { DataField: "PID", Name: "PID" },
    { DataField: "ProjectName", Name: "ProjectName" }
    ],
    Query: { CommandType: "Text", Timeout: 0, DataSourceName: content.DataSources[0].Name},
    CaseSensitivity: "Auto",
    AccentSensitivity: "Auto",
    KanatypeSensitivity: "Auto",
    WidthSensitivity: "Auto",
    Name: "Projects"
    });
  • Replied 12 March 2020, 8:42 pm EST

    Hello,

    Could you please check with the following one:

    content.DataSets.push({
    Fields: [
    { DataField: "PID", Name: "PID" },
    { DataField: "ProjectName", Name: "ProjectName" }
    ],
    Query: { DataSourceName: content.DataSources[0].Name},
    Name: "Projects"
    });


    Also, please check is dataset added in the report successfully?


    Thanks,
    Mohit
  • Replied 12 March 2020, 8:53 pm EST

    Hi Mohit,

    I found the LocateDataSource fired if I bind some one of the fields of the datasets into the template as a textbox,
    Can it call LocateDataSource with none of the dataset fields binded into the templates ? I need the dataset data to populate into dropdown in preview screen's parameter sided pannel as user preview. Hope you understand my idea.
    Thank you.
  • Replied 16 March 2020, 8:17 pm EST

    Hello,

    I have checked at my end. It is not working at my end either. I have escalated the issue to our development team(278739) and will inform you once I get any reply from them.

    Thanks,
    Mohit
  • Replied 16 March 2020, 9:47 pm EST

    Thank you
  • Marked as Answer

    Replied 6 July 2020, 2:42 am EST

    Hello,

    Sorry for the delay!

    Yes, this issue has been fixed in AR13.3. You can download the same from the following link:
    https://cdn.grapecity.com/downloads/activereports/ActiveReports-v13.3.18800.0.msi

    Thanks,
    Mohit
Need extra support?

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

Learn More

Forum Channels