How can I hide/show a column inside a Table component by JavaScript code?
I tried to do it this way to hide a column:
Code: Select all
const hdrName = this.report.getComponentByName('hdrName')
hdrName.enabled = false;
Thanks.
Code: Select all
const hdrName = this.report.getComponentByName('hdrName')
hdrName.enabled = false;
Code: Select all
const Dataroot = this.report.getComponentByName('Dataroot');
Dataroot.components.getByName('datBreed').enabled = false;
this.viewer.report = this.report;
this.viewer.renderHtml("viewerContent");