Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Display of multiple parameters.
alecsia
<p>Good morning!</p>
<p> </p>
<p>I have an issue with the display of multiple parameters.</p>
<p>I am using mblock’s report design for reference (“InClauseTestâ€): I have</p>
<pre class="_prettyXprint">
HR_APPOINTMENT.C_COURT IN ('****')
</pre>
<p>in my DataSet and</p>
<pre class="_prettyXprint">
this.queryText = this.queryText.replace("****", params["C_COURT"].value.join("','"));
</pre>
<p>in my DataSet’s script.</p>
<p> </p>
<p>It works well, but I get duplicated rows as a result (screenshot is attached).</p>
<p> </p>
<p>Is there a way to:</p>
<p>1. get rid of excessive rows;</p>
<p>2. and, very important, to display information in line? Meaning, “PARAM_1, PARAM_2, PARAM_3†and not one above the other. User will choose as many parameters as he wants, so, he can get over 10-20 names, it will be visually much more comprehensive to see them neatly in line separated by commas.</p>
<p> </p>
<p>Thank you in advance!!!</p>
Find more posts tagged with
Comments
micajblock
<p>Can you share your design and query?</p>
alecsia
<p>I deleted all excessive tables in my report, I attached the sample only with tables with issues and I did the screenshot to show the result I have now.</p>
<p> </p>
<p>I guess I figured this out a bit. I managed to get better results: I placed the header in the Header section on the Table, so it doesn’t duplicate now. I even manipulated borders so that I don’t have a border between names when they pile up on each other. The second one is the original: I guess the problem was with my attempt to pass parameters from one table to another within it. When I figured out that wasn’t necessary, I didn’t change the binding, although I deleted all parameters I created.</p>
<p> </p>
<p>Now everything looks like on the screenshot! So, the first table works almost perfectly.</p>
<p> </p>
<p>I still have one issue: it would be better to display parameters in one row separated by commas! </p>
micajblock
<p>Either use the Concatenate aggregation or simply display the parameters by using a data item with this expression:</p>
<pre class="_prettyXprint">
params["C_COURT"].value.join("','")</pre>
alecsia
<p>Works great!!! Thank you a lot once again!!!</p>