Forum Discussion
aarshps
8 years agoFrequent Visitor
Pass value to the embedded app from custom visual
Hi all, I want to pass values to the embedded app from the custom visual used in my report. For eg. I want to raise an event when a click event occurs inside the custom visual so that I can take ...
v-viig
8 years agoCommunity Champion
Have you tried window.window.postMessage to send data from ifame into main window?
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
- aarshps8 years agoFrequent Visitor
Tried, but not working. Is there any other solution? Is the sandboxed iframe blocking these events?
- v-viig8 years agoCommunity Champion
As far as I know, Power BI doesn't block such events since it's used for communication between main window and other custom visuals.
Can you share the code for furhter debugging?
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
- SolomoN-ua8 years agoRegular Visitor
Hi,
same problem here.
In the other thread (link), you were saying that PowerBI uses iframe sandbox, maybe that is why postMessage is not working?
Regards,
Anatoliy