Forum Discussion
Did something change with SelectionId, the key looks different now
- 7 years ago
It looks good to me.
What API version are you using? API 2.3.0?
If so, I suggest downgrading API version to API 2.2.0 just to make sure it is not related to API.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
It looks good to me.
What API version are you using? API 2.3.0?
If so, I suggest downgrading API version to API 2.2.0 just to make sure it is not related to API.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Hello,
Could you please share with me your code?
- v-evelk7 years ago
Microsoft Employee
Hello,
Could you please clarify what code do you mean?
Kind Regards,
Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals
[email protected]- Anonymous7 years agoNot applicable
How to add selectionId to table?
Also, how correct to use ISelectionManager?
- Anonymous7 years agoNot applicable
I use for create SelectionIds
private getSelectionIds(dataView: DataView, host: IVisualHost): ISelectionId[] { return dataView.table.identity.map((identity, idx) => { const categoryColumn: DataViewCategoryColumn = { source: dataView.table.columns[0], values: null, identity: [identity] }; return host.createSelectionIdBuilder() .withCategory(categoryColumn, idx) .createSelectionId(); }); }For click:
Microsoft.Maps.Events.addHandler(node, 'click', function (e: Microsoft.Maps.IMouseEventArgs) { console.log('marker identity is ', sensorData.selectionId); debugger; this.selectionManager.select(sensorData.selectionId, false).then((ids: ISelectionId[]) =>{ console.log(ids); }).catch(e => console.error(e)); });I see that in selectionManager add/remove selectedIds.
But data from the dashboard are not filtered. Nothing happens.
I use API 2.2.0.
what I do wrong?
- v-evelk7 years ago
Microsoft Employee
Hi,
Please check this and this pages.
Also you can look at the Sample Bar Chart code.
Kind Regards,
Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals
[email protected]