Forum Discussion
az2451
8 years agoResolver I
How to use host services? | SelectionManager - Visual Interactions
Hello :) I was trying to assign Selection Ids to each data point and got an error message that says: (168,19) Cannot find name 'host'. I marked line 168 below in red. By the way i was using...
- 8 years ago
The static converter method must accept a host object as an argument:
public static converter(rows: DataViewTableRow, host): items[] {var dat = Visual.converter(options.dataViews["0"].table.rows, this.host);
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
v-chuncz-msft
8 years agoCommunity Support
If convenient, share a complete project for a quick test. You may take a good look at Sample Bar Chart Repo.
v-viig
8 years agoCommunity Champion
The static converter method must accept a host object as an argument:
public static converter(rows: DataViewTableRow, host): items[] {
var dat = Visual.converter(options.dataViews["0"].table.rows, this.host);
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals