Forum Discussion

callum's avatar
callum
Helper II
8 years ago
Solved

enumerateObjectInstances not getting called

Hi,

 

I've added the following to my capabilities.json file:

 

  "objects": {
    "testObject": {
      "displayName": "Test object",
      "properties": {
        "testProperty": {
          "displayName": "Test property",
          "type": {
            "bool": true
          }
        }
      }
    }
  }

and I've edited my visual's enumerateObjectInstances method to perform 

console.log("test");

However, nothing ever gets logged!

 

In the comment above the method it says that it gets called for each object in the capabilities file, so how come it's not getting called?

 

Thanks

  • You should open the format panel or change any property of the format pane.

     

     

     

     

     

     

     

     

     

     

     

     

     

    Ignat Vilesov,

    Software Engineer

     

    Microsoft Power BI Custom Visuals

    [email protected]

1 Reply

  • v-viig's avatar
    v-viig
    Community Champion

    You should open the format panel or change any property of the format pane.

     

     

     

     

     

     

     

     

     

     

     

     

     

    Ignat Vilesov,

    Software Engineer

     

    Microsoft Power BI Custom Visuals

    [email protected]