LimeReport Forum

General Category | Основное => Discussion | Обсуждение => Topic started by: Hassan on April 23, 2020, 12:28:53 AM

Title: hide textItem
Post by: Hassan on April 23, 2020, 12:28:53 AM
How Can I hide duplicated TextItems in data row.
Thank u in advance.
Title: Re: hide textItem
Post by: Arin Alex on April 23, 2020, 09:23:33 PM
The TextItem has property isVisible and you can use it in the value script something like this:
Code: [Select]
$S{
  if (PriorValue == getField("datasource.Field")){
    THIS.isVisible = false
  } else {
    PriorValue = getField("datasource.Field")
  }
  getField("datasource.Field") 
}
In the init script initialize PriorValue like:
Code: [Select]
var PriorValue = ""