Forum Discussion
Use dynamic Binding to display report but report does not display
- 5 years ago
I finally found the problem. In my config in JS I forgot to set the datasetBinding:
const config = {
type: 'report',
tokenType: models.TokenType.Embed,
accessToken: accessToken,
embedUrl: embedUrl,
id: embedReportId,
permissions: models.Permissions.All,
datasetBinding: {
datasetId: data.dataSetId,
},
datasetId: data.dataSetId, // The dataset id that you want the report to use
settings: {
// Enable this setting to remove gray shoulders from embedded report
// background: models.BackgroundType.Transparent,
filterPaneEnabled: true,
navContentPaneEnabled: true
}
};
I finally found the problem. In my config in JS I forgot to set the datasetBinding:
const config = {
type: 'report',
tokenType: models.TokenType.Embed,
accessToken: accessToken,
embedUrl: embedUrl,
id: embedReportId,
permissions: models.Permissions.All,
datasetBinding: {
datasetId: data.dataSetId,
},
datasetId: data.dataSetId, // The dataset id that you want the report to use
settings: {
// Enable this setting to remove gray shoulders from embedded report
// background: models.BackgroundType.Transparent,
filterPaneEnabled: true,
navContentPaneEnabled: true
}
};