Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

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...
  • dm-p's avatar
    dm-p
    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