Forum Discussion
Working example for new format pane
Hi spandl,
The getFormattingModel() method is used to customise the format layout. You still need to parse the data view when your visual updates so that these values are read and exposed.
Previously, you would typically call VisualSettings.parse() on your data view in the update() method, and this is typically what's included in the visual when you run pbiviz new.
If you're using powerbi-visuals-utils-formattingmodel to use the new layout then this has a helper method - populateFormattingSettingsModel() - which can be used instead, although the 'legacy' way still should work fine (I added formatting cards to one of my visuals prior to the new doc being made available, and this works fine, but I wouldn't recommend you follow my example and try and do everything using the supplied doc and libraries).
I'd recommend looking at the revised tutorial, which includes the new formatting pane, specifically step 11.
If you've tried this, then it's probably better if you share the relevant parts of your code (including your capabilities) so we can have a look and see if there's anything that sticks out.
Good luck!
Daniel