Forum Discussion

satishr's avatar
satishr
Helper III
8 years ago
Solved

Cannot generate custom visual until all format options are set

I'm new to coding Power BI custom visuals. I have created a simple visual following the documentation available (which is very limited). I'm testing the visual on Power BI service and it looks fine. ...
  • satishr's avatar
    satishr
    8 years ago

    v-viig I found the solution for the initial problem. I used if (options.dataViews[0].metadata.objects) check and it works fine now. I have a new issue. There is a "Revert to default" button in the format options. How to get make it work? 
    Note: I'm not using settings.ts. I'm initializing all the format options values in the constructor in visual.ts and assigning them in the enumerateObjectInstances function.