Hide a component based on conditions from previous Row
Posted: Tue May 15, 2012 9:54 am
Hi,
I got a problem when trying to hide a line in databand. The situation is following: I print an address in one column and if the address is the same for next row I hide it with this stimulsoft implemented function for Previous row:
{IIF(Previous(BC_JizdyStazkyItinerar_Rpt_GetData_SP,"JStanStart") like BC_JizdyStazkyItinerar_Rpt_GetData_SP.JStanStart,"",BC_JizdyStazkyItinerar_Rpt_GetData_SP.SmlouvaID &" "&BC_JizdyStazkyItinerar_Rpt_GetData_SP.FirmaKonPr)}
The function works good for text.
the design looks like:
Column Name 1 | Column Name 2
-------------------
Adress1 | Value 1
----------------
Adress2 | Value 2
----------------
Adress2 | Value 3
----------------
So it should look like this with hidden line:
Column Name 1 | Column Name 2
-------------------
Adress1 | Value 1
----------------
Adress2 | Value 2
| Value 3
----------------
but when I want to hide whole textbox by conditions in properties it simply doesnt work. I have tried expression based on Length or equals but the line show every time. Do you have any idea how I can do so?
Thanks
I got a problem when trying to hide a line in databand. The situation is following: I print an address in one column and if the address is the same for next row I hide it with this stimulsoft implemented function for Previous row:
{IIF(Previous(BC_JizdyStazkyItinerar_Rpt_GetData_SP,"JStanStart") like BC_JizdyStazkyItinerar_Rpt_GetData_SP.JStanStart,"",BC_JizdyStazkyItinerar_Rpt_GetData_SP.SmlouvaID &" "&BC_JizdyStazkyItinerar_Rpt_GetData_SP.FirmaKonPr)}
The function works good for text.
the design looks like:
Column Name 1 | Column Name 2
-------------------
Adress1 | Value 1
----------------
Adress2 | Value 2
----------------
Adress2 | Value 3
----------------
So it should look like this with hidden line:
Column Name 1 | Column Name 2
-------------------
Adress1 | Value 1
----------------
Adress2 | Value 2
| Value 3
----------------
but when I want to hide whole textbox by conditions in properties it simply doesnt work. I have tried expression based on Length or equals but the line show every time. Do you have any idea how I can do so?
Thanks