LimeReport Forum

General Category | Основное => Discussion | Обсуждение => Topic started by: solomon78 on December 03, 2024, 01:47:01 am

Title: how setting of boarder line dynamically
Post by: solomon78 on December 03, 2024, 01:47:01 am
How to disable or enable boarder line of of Text_Item dynamically base on certainin conditions, if retrieve data of Text_Item is null boarder line should not appear but if not null boarder should show. thank
Title: Re: how setting of boarder line dynamically
Post by: Subst on December 05, 2024, 11:34:45 am
Hi!
By using the script as the content of TextItem for example
Like this

Code: [Select]
$S{
  if (your_condition)
    THIS.borders=15;
  "simple_text";
  }

the Enum of borders is

Code: [Select]
enum BorderSide {
  NoLine = 0,
  TopLine = 1,
  BottomLine = 2,
  LeftLine = 4,
  RightLine = 8,
  AllLines = 15
  };