cancel
Showing results for 
Search instead for 
Did you mean: 

export only the visible widgets to PDF using the Tabber plugin

Tet
8 - Cloud Apps
8 - Cloud Apps

I am building a dashboard using the Tabber plugin.

However, during the export process to pdf, all widgets are included, even those hidden by Tabber.

Is there a way to address this issue without relying on other plugins?

I am specifically looking for a script-based solution.

Thanks,

2 REPLIES 2

rapidbisupport
10 - ETL
10 - ETL

Hi @Tet ,

You should be able to use the following to hide widgets with oids.

Solved: HIDE WIDGET WHEN EXPORTING TO PDF - Sisense Community

widgetsToHide = ['614c7929feba1f08d4e71dd4','6197738df7f55b16c058415f']

dashboard.on('widgetready', function (se, ev) {
	
	if(widgetsToHide.includes(ev.widget.oid))
	{
		$('[widgetid=' + ev.widget.oid + ']').closest('.u-r').height(0)
	}
});

You could integrate this  as part of your tabber to  hide widgets on the fly that are part of of your 'hideList'.

Let me know how you go?

Thanks,

Daniel

RAPID BI

[email protected]

RAPID BI - Sisense Professional Services | Implementations | Custom Add-ons

DRay
Community Team Member
Community Team Member

Hello @Tet ,

Did the solution offered by @rapidbisupport  work for you? If so, please click the 'Accept as Solution' button so that other users with the same questions can find the answer faster. If not, please let us know so that we can continue to help.

Thank you.

David Raynor (DRay)