Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: hide textItem  (Read 2584 times)

Hassan

  • Newbie
  • *
  • Posts: 19
    • View Profile
hide textItem
« on: April 23, 2020, 12:28:53 am »
How Can I hide duplicated TextItems in data row.
Thank u in advance.

Arin Alex

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1005
    • View Profile
Re: hide textItem
« Reply #1 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 = ""