Forum Discussion
Eliasaki92
8 years agoAdvocate II
Communication between visuals, shared memory, iFrame scaling and maximum file size for pbiviz
Hi, I am looking into developing custom visuals according to the international business communication standards "IBCS" in Power BI. As potential show stoppers I discovered the following point...
- 8 years ago
Hello Eliasaki92
- I dodn't think that this is possible but you might try to use postMessage to send messages to other iframe.
- That's impossible due to iframe isolation. Are you able to merge two custom visual into common code base in order to achieve the shared memory?
- That isn't possbile. However, you might open another window by using Launch URL API.
- Yes, you're right. Power BI doesn't allow to import pbiviz that is larger than 2MB. It'd be better to reduce code size that is included into pbiviz. Another option is to unzip the pbiviz file and zip it again using another compression level.
Please let us know if you have any further questions.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
v-viig
8 years agoCommunity Champion
Hello Eliasaki92
- I dodn't think that this is possible but you might try to use postMessage to send messages to other iframe.
- That's impossible due to iframe isolation. Are you able to merge two custom visual into common code base in order to achieve the shared memory?
- That isn't possbile. However, you might open another window by using Launch URL API.
- Yes, you're right. Power BI doesn't allow to import pbiviz that is larger than 2MB. It'd be better to reduce code size that is included into pbiviz. Another option is to unzip the pbiviz file and zip it again using another compression level.
Please let us know if you have any further questions.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
- Eliasaki928 years agoAdvocate II
Many thanks for the quick and complete answer!