COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: Cognos Talk on 18 Jun 2014 12:05:25 PM

Title: fixed lengths for the each of the columns in concatenated string
Post by: Cognos Talk on 18 Jun 2014 12:05:25 PM
Hello!
How do I concatenate equally each column in concatenated string so I get and equal spacing in between each of the fields in report studio? I need to display it looking like table output, i.e liking like each individual column
I am using Informix as a source

I do the following command, but it doesn't work properly after location.

[Ticket No] ||'     '||[ Date]||'     '|| [Status Description]|| '     '||cast([P First Name] as char(15)) ||'      '||cast([P Last Name]as char(25)) ||'      '|| cast([Location] as char(35)) ||'      '|| cast([Desc]as char(60))

Thank you very much in advance for  your help,
Title: Re: fixed lengths for the each of the columns in concatenated string
Post by: bdbits on 19 Jun 2014 04:33:13 PM
If you need it to look "like table output", why don't you just use a normal data container with data items in columns and style accordingly? e.g. set the column widths to be fixed equal lengths. You can remove borders and other styling if you like.

Most containers already render as tables.