By Using Universe design i want to generate a report. In that report i want to display the Table 1 ->Record 2 i.e ID=2 & Name filed value
“7,9,11” as “data7,data9,data11”
I hope every one understand the above scenario !!!
I am assuming it can be done using “Functions” in Universe design
Please someone explain me how to handle this scenario ?
You’d need to build a database function that can be accessed by the user defined in the universe connection.
The code should, at its highest level:
Count the number of commas in the string
Contain a cursor that loops through chopping up the string and outputs the results.
This obviously depends upon your rdbms - the solution will, for example, look different in SQL Server and Oracle.
Declare variables for manipulating the string:
input_string, output_string, string_post, etc.
Declare a cursor to loop through the input string and write out the output string.
I’d have to test that it would work with BusinessObjects - it’s something that I’ve done a few times in ETL processes and data take-on routines though.