Forum Discussion
joao_pires
8 years agoFrequent Visitor
Persist text when publish report custom visual
Hi, In custom visual : When i publish report, how persist or get text to input how to custom visual Text toFilter does? For now the filters are applied. thanks
- 8 years ago
Don't call this.visualHost.persistProperties in enumerateObjectInstances method since such implementation might cause an infinite update loop if Format Panel is opened.
Are there any exceptions? Can you share the embedded Power BI report to debug it?
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
v-viig
Community Champion
8 years agoTo keep data in Power BI you should define a property in objects property of capaiblities.json (documentation).
After that call persistProperties to send settings to Power BI host.
As a result the saved data will be in objects object of metadata.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals