Forum Discussion
Anonymous
5 years agoNot applicable
Format Panel
Hi everyone! Do we have the possibility to enable/disable the switcher (Column subtotals) in format panel programmatically? After that, it should make an API call to powerbi.dataView and rerender th...
- 5 years ago
Hi Anonymous,
You can use persistObjectProperties on the visual host to do it. You send a VisualObjectInstancesToPersist object containing the object/property(ies) you wish to update and the visual host will set them and trigger an update/re-query (as any property change will do this), which would satisfy your requirement of updating the dataView.
Regards,
Daniel
Greg_Deckler
5 years agoCommunity Champion
dm-p
5 years agoSuper User
Hi Anonymous,
You can use persistObjectProperties on the visual host to do it. You send a VisualObjectInstancesToPersist object containing the object/property(ies) you wish to update and the visual host will set them and trigger an update/re-query (as any property change will do this), which would satisfy your requirement of updating the dataView.
Regards,
Daniel