RECOMMENDATION: If you are using a version of The Portal Connector higher than 4.0, we strongly recommend utilizing the MVC based widgets and components to create your site. This documentation is for legacy purposes only and will soon be deprecated.

get_report

If set to power BI it will returns an iframe else if its set to power Bi ​embeded it will return Power Bi ​embedded Report Object.

Example-EXAMPLE- GET REPORT POWER BI REPORT

tpc.page.TpcPowerBiModel.get_report()
Parameters

None

 

Returns

Returns the ​power BI Object

get_element()

Returns the element of the widget.

 

Example- EXAMPLE-POWER BI FETCH ELEMENT

tpc.page.TpcPowerBiModel.get_element()
Parameters

None

 

Returns

jQuery Object

 

get_container()

Returns the container element of the widget.     

 

Example- EXAMPLE-POWER BI REPORT FETCH CONTAINER ELEMENT

tpc.page.TpcPowerBiModel.get_container();
Parameters

None

Returns

jQuery Object     

 

get_reportPages()

Returns the array of Power BI Embedded report.  

Example-EXAMPLE-GET REPORT PAGES POWER BI REPORT

tpc.page.TpcPowerBiModel.get_reportPages()
Parameters

None

Returns

Array

show()

Shows the widget on the page.

 

Example-EXAMPLE- SHOW POWERBI REPORT

tpc.page.TpcPowerBiModel.hide()
Parameters

None

 

Returns

None

 

toggle()

toggles the visibility of the widget. ​

Example-EXAMPLE- TOGGLE POWER BI REPORT

tpc.page.TpcPowerBiModel.​toggle()
Parameters

None

Returns

None

hide()

Hides the widget from the page.

 

Example-EXAMPLE- HIDE POWER BI REPORT

tpc.page.TpcPowerBiModel.​hide()
Parameters

None

 

Returns

None

 

get_model()

Returns the model object ​of the widget, which contains several useful properties related to the widget.

Example-EXAMPLE- POWER BI FETCH MODEL

tpc.page.TpcPowerBiModel.get_model()
Parameters

None

 

Returns

Object