Forum Discussion
Cannot generate custom visual until all format options are set
- 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. - 8 years ago
satishr You can find the solution at this topic.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Thanks for the reply v-chuncz. Just setting the values for each format options in settings.ts doesn't work. These values should be loaded to the visual in visual.ts and I'm not able to do it.
satishr Could you please describe the issue a bit deeper?
Are you changing the color but it returns to the default? Is that correct?
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
- satishr8 years agoHelper III
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.- v-viig8 years agoCommunity Champion
satishr You can find the solution at this topic.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals