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 return an iFrame. Else, if set to power Bi embedded, it will return Power BI Embedded Report Object.

Example-POWER BI REPORTS GET REPORT

tpc.page.TpcPowerBiModel.get_report()
Parameters

None

Returns

Power BI Object

get_element()

Returns the element of the widget.

Example-POWER BI REPORTS FETCH ELEMENT

tpc.page.TpcPowerBiModel.get_element()
Parameters

None

Returns

jQuery Object

get_container()

Returns the container element of the widget.

Example-POWER BI REPORTS FETCH CONTAINER ELEMENT

tpc.page.TpcPowerBiModel.get_container();
Parameters

None

Returns

jQuery Object

get_reportPages()

Power BI Embedded Report Array

Example-POWER BI REPORTS GET REPORT PAGES

tpc.page.TpcPowerBiModel.get_reportPages()
Parameters

None

Returns

Array

show()

Shows the widget on the page.

Example-SHOW POWER BI REPORTS

tpc.page.TpcPowerBiModel.hide()
Parameters

None

Returns

None

toggle()

Toggles the visibility of the widget.

Example-TOGGLE POWER BI REPORTS

tpc.page.TpcPowerBiModel.toggle()
Parameters

None

Returns

None

hide()

Hides the widget from the page.

Example-HIDE POWER BI REPORTS

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-POWER BI REPORTS FETCH MODEL

tpc.page.TpcPowerBiModel.get_model()
Parameters

None

Returns

Object