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”
});