Forum Discussion

az2451's avatar
az2451
Resolver I
8 years ago
Solved

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...
  • v-viig's avatar
    v-viig
    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

    [email protected]