Posted 13 September 2021, 2:25 am EST
“Using pre-defined data sources” overviews the process of creating pre-defined datasources & datatemplates using the Designer Desktop App. https://www.grapecity.com/activereportsjs/docs/DeveloperGuide/ActiveReportsJSDesignerComponent/Add-Predefined-Datasources-Datasets
Is there a way to do this dynamically & programmatically in our JavaScript application?
I can add the Data Source Connection Properties, but I’m hoping there is a way to programmatically call the 'Validate" functionality for a given Path in order to set dataset information without user intervention.
ref.current.setReport({
definition: {
...report.definition,
DataSources: [{
Name: "Data",
ConnectionProperties:{
DataProvider: "JSONEMBED",
ConnectString: "jsondata=" + JSON.stringify(data),
}
}]
}
});