Project

General

Profile

Feature #3548

Dashboard path / path to CDA file in legacy dashboards

Added by Dac Anh Minh LE 5 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2018-01-03
Due date:
% Done:

0%


Description

Hello,

I am Dac Anh Minh LE, a developer working within the BI team of the French IT services company ATOL Conseils & Developpements.

We are creating a new CDE custom component, and we would like to support both RequireJS and legacy dashboards. However, we have discovered that a change has been made in the way we provide queryDefinition to the triggerQuery or getQuery functions (RequireJS dashboards: {dataSource} ; legacy dashboards : {dataAccessId, path}).
As far as we discover, the path to the CDA file of the dashboard is provided by backend, and queryDefinition is created with the 2 properties dataAccessId and path also by backend. In our case, we would like to use this.dashboard.getQuery to bring data to our new component (outside the component's lifecycle, inside the update function). In RequireJS dashboards, we just need to provide an object containing the dataSource property to getQuery, while in legacy dashboards, we need to provide an object containing the dataAccessId and path properties.

Our question is : Is there a way to get the dashboard path / the path to the CDA file inside our component (by using a property within this.dashboard for example), so that we can provide it to the getQuery function ?

Sincerely,
Dac Anh Minh LE
Developer at Atol Conseils & Developpements

Also available in: Atom PDF