Forum Discussion
Embedded power BI - Accessing powerbi iframe DOM object from application
- 8 years ago
Hi vivek_jain,
Followings are a list of events which can be handled Power BI JavaScript API.
Reports
loaded configuration rendered Called when a report is fully rendered. For example, if all visuals are rendered on loading report or after user interaction. pageChanged newPage: Page filtersApplied (Not supported yet) filters dataSelected report: Report page: Page visual: Visual (Will be defined) filters: IFilter[] dataPoints: (Array of data points) each point has: 1) **identity** array 2) **values** array (In Progress) commandTriggered Raised when end user clicks on extension command. [Menu Commands Extension](https://github.com/Microsoft/PowerBI-JavaScript/wiki/Menu-Commands-Extension)Dashboards
tileClicked Raised when end user clicks a tile. event properties are: tileId: id of clicked tile. reportEmbedUrl: Embed Url of the original report the tile created from (if any) pageName: name of the page the tile created from (if any) navigationUrl: Url which will be opened in powerbi.com if user clicks a tile.In you scenario, you should be able to handling the rendered(which will be triggered after user interaction when a report is fully rendered) or tileClicked event to take care of application session time outs. :smileyhappy:
Regards
Hi vivek_jain,
Followings are a list of events which can be handled Power BI JavaScript API.
Reports
loaded
configuration
rendered
Called when a report is fully rendered. For example, if all visuals are rendered on loading report or after user interaction.
pageChanged
newPage: Page
filtersApplied (Not supported yet)
filters
dataSelected
report: Report
page: Page
visual: Visual (Will be defined)
filters: IFilter[]
dataPoints: (Array of data points)
each point has:
1) **identity** array
2) **values** array (In Progress)
commandTriggered
Raised when end user clicks on extension command.
[Menu Commands Extension](https://github.com/Microsoft/PowerBI-JavaScript/wiki/Menu-Commands-Extension)
Dashboards
tileClicked
Raised when end user clicks a tile. event properties are:
tileId: id of clicked tile.
reportEmbedUrl: Embed Url of the original report the tile created from (if any)
pageName: name of the page the tile created from (if any)
navigationUrl: Url which will be opened in powerbi.com if user clicks a tile.
In you scenario, you should be able to handling the rendered(which will be triggered after user interaction when a report is fully rendered) or tileClicked event to take care of application session time outs. :smileyhappy:
Regards
Thanks v-ljerr-msft for the prompt response.
'rendered' event seems to work for my case.