Change Text-Label Column (Cross-Tab)

Stimulsoft Ultimate discussion
Post Reply
Steff23
Posts: 9
Joined: Tue Apr 23, 2024 6:55 am

Change Text-Label Column (Cross-Tab)

Post by Steff23 »

Hi,

i'm looking for a solution on how to change the column names in a cross-table. The existing column names correspond to a database entry.
How can I change the label of this using an if statement? For example: if wage type 4971 appears as a column, the label should be changed to 4971 ('meinText')

Thanks

Steff23
Attachments
Label_umbennen.JPG
Label_umbennen.JPG (20.86 KiB) Viewed 272 times
Lech Kulikowski
Posts: 6358
Joined: Tue Mar 20, 2018 5:34 am

Re: Change Text-Label Column (Cross-Tab)

Post by Lech Kulikowski »

Hello,

As away, you can add the Calculated column with the necessary expression - datasource.column + "your text", and then use it for the Cross-Tab component.

Thank you.
Steff23
Posts: 9
Joined: Tue Apr 23, 2024 6:55 am

Re: Change Text-Label Column (Cross-Tab)

Post by Steff23 »

Hello, but I have the problem that the column name must always be different. In your solution (datasource.column + "your text"), the same text is always displayed. Each column must necessarily have a different text on its own.


Thanks

Steff23
Attachments
I need an individual text for each generated column
I need an individual text for each generated column
Text_onlythesame_print.JPG (28.58 KiB) Viewed 150 times
I need an individual text for each generated column
I need an individual text for each generated column
Text_onlythesame.JPG (61.23 KiB) Viewed 150 times
Steff23
Posts: 9
Joined: Tue Apr 23, 2024 6:55 am

Re: Change Text-Label Column (Cross-Tab)

Post by Steff23 »

i found this: {IIF (EMPLOYEEWAGEACCOUNTVALUES.WAGEACCOUNT_NAME == "LA 4971", "MeinText \n@4971", EMPLOYEEWAGEACCOUNTVALUES.WAGEACCOUNT_NAME)}

but i need this for more VALUES like this LA 4972, LA 4973 and more .....
Lech Kulikowski
Posts: 6358
Joined: Tue Mar 20, 2018 5:34 am

Re: Change Text-Label Column (Cross-Tab)

Post by Lech Kulikowski »

Hello,

You can use the Switch function.

Thank you.
Post Reply