Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

How to merge two parameters

$
0
0
Hi,
Is it possible to merge two parameters?
I have a requirement where I have to generate a CSV report. Some of the columns in this report are dynamic. So the value of this column can be 'X name' or 'Y name' or 'Z name'. Whether it's X,Y or Z depends on the configuration.
What I did was that I made the columns as 'resource-field' and return the values from the query. But the problem is that when the query doesn't return any record the columns doesn't appear in the report.
Can I do something like '${param_1} + '_' + ${param_2}'. So ${param_1} will be either X,Y or Z and ${param_2} will be name/reference/addr etc. So after concatenation it will become 'X_name' and this will be fetched from the resource bundle.

Viewing all articles
Browse latest Browse all 16689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>