question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

navigateToDashboard not accepting parameters

See original GitHub issue

I’m trying to use navigateToDashboard method and my code looks like this:

embedDashboard.navigateToDashboard({
   dashboardId,
   parameters: {
      startDate,
      endDate
   }
});

However, I’m always getting the following error:

embed-dashboard.bundle.7c5390c5f709b1b11769.31.js:2 Uncaught TypeError: e[r].map is not a function
    at embed-dashboard.bundle.7c5390c5f709b1b11769.31.js:2
    at Array.forEach (<anonymous>)
    at e._constructHashString (embed-dashboard.bundle.7c5390c5f709b1b11769.31.js:2)
    at embed-dashboard.bundle.7c5390c5f709b1b11769.31.js:2
    at embedding.0e133f13518143eeb152.31.js:2
    at Set.forEach (<anonymous>)
    at y.e.trigger (embedding.0e133f13518143eeb152.31.js:2)
    at y.<anonymous> (embed-dashboard.bundle.7c5390c5f709b1b11769.31.js:2)

If I don’t pass the parameters and only dashboard Id, it works properly

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
chaudharivijaycommented, Jun 10, 2021

Hi, While we look into a better offering, please wrap all parameter values in an array, even if you are passing a single value for a param.

In your example, it can be -

embedDashboard.navigateToDashboard({
   dashboardId,
   parameters: {
      startDate: [startDate],
      endDate: [endDate]
   }
});
1reaction
chaudharivijaycommented, Jun 2, 2021

As shown in example (see below), parameters is a map.

    var options = {
        dashboardId: "37a99f75-8230-4409-ac52-e45c652cc21e",
        parameters: {
            country: [
                "United States"
            ]
        }
    };
    dashboard.navigateToDashboard(options);

Please change the input to

embedDashboard.navigateToDashboard({
   dashboardId,
   parameters: {
      startDate: startDate,
      endDate: endDate
   }
});

assuming that “startDate” and “endDate” are the parameter names and startDate and endDate are the corresponding values.

Read more comments on GitHub >

github_iconTop Results From Across the Web

amazon-quicksight-embedding-sdk/README.md - GitHub
Parameters in an embedded experience session can be set by using the following call: embeddedExperience.setParameters({country: "United States", ...
Read more >
Configuring filter parameters when using "Navigate to ...
When configuring the “Navigate to Dashboard” functionality, make sure to select “Pass current parameters when navigating” first before selecting ...
Read more >
Navigate to another Dashboard using Parameter / Filter. Both ...
Navigate to another Dashboard using Parameter / Filter. Both the dashboard refers to different data sources. We have 2 data sources called A ......
Read more >
Passing multiple parameters between views - Vaadin Forum
navigateTo(DashBoard.NAME + "/" + email.getValue()). But is there any way to pass more than one parameters? Or this is not the correct way ......
Read more >
FAQ Passing parameters within dashboards through button
Passing parameters within dashboards through button. Using buttons on ClicData, you are able to create a portfolio of dashboards that can be shared...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found