Forum Discussion
Ophir_Buchman
03-15-2022Data Integration
Hi Chandra
The correct way to hide a column is by disabling it.
To do so, you'll have to use a code similar to this:
widget = prism.activeDashboard.widgets.$$widgets.filter(i => i.oid === '614c7929feba1f08d4e71dd4')[0]
widget.metadata.panels[1].items[0].disabled = true
widget.changesMade()
widget.redraw()
Once this is in place, the relevant column(s) will be disabled and a PDF will be generated as expected