Forum Discussion

BIReady's avatar
BIReady
New Member
5 years ago
Solved

Use dynamic Binding to display report but report does not display

HI,   We have a webSite that is used to display several reports to several customer. Each customer has his own database, but all DB have exactly the same schema. We want to use only one report wit...
  • BIReady's avatar
    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
    }
    };