Forum Discussion

danieleperilli's avatar
danieleperilli
Kudo Commander
5 years ago

persistProperties with empty dataview

I noticed strange behavior when the new "empty dataview" feature is enabled. 

It appears that calling the host.persistProperties method when there is no data associated with a visual doesn't trigger any update/refresh (and the passed properties are not saved). Is it intentional or is it a bug?

6 Replies

    • danieleperilli's avatar
      danieleperilli
      Kudo Commander

      I'm sorry, I don't understand your answer.

      If there is no data associated with the visual (and the visual now supports it thanks to the "supportsEmptyDataView" flag) and you call host.persistProperties (...), the visual does not save the passed data as usual. With regular data binding, persistProperties saves the passed properties and triggers the Update event, without data this does not happen.

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi danieleperilli,

        So you mean this issue appears when you enable the flag? If that is the case, perhaps you can try to contact to power bi custom visual team to report this scenario.

        Regards,

        Xiaoxin Sheng