Forum Discussion
Modifying parseSettings/VisualSettings
- 8 years ago
Hi callum v-chuncz-msft
I'm also trying to develop a custom visual and is stuck at this particular point.
how did you retrieve property values from the dataview and how did you populate the property pane afterwards?
Did you use enumerateObjectInstances ?
- v-viig8 years agoCommunity Champion
Hello Anonymous
Yes, you should implement enumerateObjectInstances in order to update values at the format panel.
Do you have VisualSettings class in your csutom visual?
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
- Anonymous8 years agoNot applicable
hello v-viig
Yes,I am using VisualSettings class.
Should i use the switch statement then.
I'm a little confused as this template is slightly different from the one in the tutorial.- v-viig8 years agoCommunity Champion
If you want to include new properties into formatting panel you should:
- Create a new class
export class NewGroup { public show: boolean = true; }- Specify an instance of the new class into VisualSettings class
export class VisualSettings extends DataViewObjectsParser { public newGroup: NewGroup = new NewGroup(); }- Specify the new group at capabilities.json
"objects": { "newGroup": { "displayName": "New Group", "properties": { "show": { "displayName": "Show", "type": { "bool": true } } } } }Please note that these steps are for including the new group of properties. You can actually include new properties into the existing classes (please don't forget to specify the same properties at capabilities.json).
Please let me know if you have any further questions.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals