Hi,
I need help in hiding a Label and Image from Dataset fetch script.
I tried below codes:
reportContext.getDesignHandle().getElementByID(123).style.display = "none"; OR
reportContext.getDesignHandle().getElementByID(123).getStyle().display = "none"; OR
reportContext.getDesignHandle().getElementByID(123).display = "none"; OR
reportContext.getDesignHandle().getElementByID(123).setProperty('display', 'none');
Above 3 didn't work but I do see setProperty actually works, it changes the 'display' to 'none' but it doesn't reflect on UI, i.e. it still shows the Label
I am using Excel Emitter as well to show report in Excel format.
Thanks in advance.
Jai Gharge
I need help in hiding a Label and Image from Dataset fetch script.
I tried below codes:
reportContext.getDesignHandle().getElementByID(123).style.display = "none"; OR
reportContext.getDesignHandle().getElementByID(123).getStyle().display = "none"; OR
reportContext.getDesignHandle().getElementByID(123).display = "none"; OR
reportContext.getDesignHandle().getElementByID(123).setProperty('display', 'none');
Above 3 didn't work but I do see setProperty actually works, it changes the 'display' to 'none' but it doesn't reflect on UI, i.e. it still shows the Label

I am using Excel Emitter as well to show report in Excel format.
Thanks in advance.
Jai Gharge