hunger regnuh
09/01/2022, 3:19 PMgetObjectDetails
or something equivalent in an onDrill
? i need to return more than just labels and values without exposing that extra data in the chart… TIAJiri Zajic
09/01/2022, 3:32 PMexecutionContext
and drillContext
. These should contain all the information about the drill event you would need.
In this callback feel free to grab anything useful and call as many other API endpoints as you wish… What exactly are you trying to achieve?hunger regnuh
09/01/2022, 3:39 PMdrillableItems: [
HeaderPredicates.objMatch(this.goodData?.catalog?.ProjectName),
HeaderPredicates.objMatch(this.catalog.YTDEarnedValue),
HeaderPredicates.objMatch(this.catalog.YTDExpectedCost),
],
onDrill: (event: IDrillEvent) => {
const projectName =
!!event?.drillContext?.points && !!event?.drillContext?.points[1]
? event?.drillContext?.points[1]?.intersection[1]?.header['attributeHeaderItem']?.uri
: event?.drillContext?.intersection[1]?.header['attributeHeaderItem']?.uri;
this.onProjectDrill.emit(projectName);
return false;
},
what i also need though is the ID of the project (or any other entity that was clicked on) and i don’t want to expose the ID to the userhunger regnuh
09/01/2022, 3:50 PMJiri Zajic
09/01/2022, 3:58 PMproject
and it has label projectTitle
that gets exposed to the user in the chart, and also label projectId
that is NOT exposed in the chart. Could you look up the projectId
based on the projectTitle
inside the callback function?
Another scenario, you could grab the original execution payload (measures/attributes), add your desired EXTRA attribute, and then execute again programatically and read the extra added attribute.hunger regnuh
09/01/2022, 4:01 PMgetObjectDetails
is exposed 😄 i’ll add a feature requesthunger regnuh
09/01/2022, 4:02 PM