LimeReport
LimeReport copied to clipboard
set visibility of imageItems
Hello,
how can i change the visibility of a imageItem via script?
Hi!
You can use the initial script for this purpose. You can write some functions that will run before rendering the band and change the item's visibility.
For example:
Reportpage1_DataBand1.beforeRender.connect(DataBand1BeforeRender)
function DataBand1BeforeRender() {
Reportpage1_ImageItem1.isVisible = getVariable("showImage") === "true"
}
It worked, thank you