LimeReport icon indicating copy to clipboard operation
LimeReport copied to clipboard

set visibility of imageItems

Open TobiasAll opened this issue 4 years ago • 2 comments

Hello,

how can i change the visibility of a imageItem via script?

TobiasAll avatar Sep 28 '21 14:09 TobiasAll

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"
}

fralx avatar Sep 28 '21 15:09 fralx

It worked, thank you

TobiasAll avatar Sep 29 '21 11:09 TobiasAll