Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
display text not working for multi selects
gourav2501
<p>Hi Team,</p>
<p> </p>
<p>I am working for Sony Picutures entertainment and trying to display params selected from multi select list .It is giving an error. Request you to please help me with the same. BElow is the example that I am using:</p>
<p>Both the below syntax are not working. Request yout to please suggest the fix.</p>
<p> Sony has a license for ihub.</p>
<p> </p>
<p>params["x"].displayText.join(",")</p>
<p> </p>
<p>ReportContext.getParamDisplayText('x").join(",")</p>
<p> </p>
<p> </p>
<p>Thanks,</p>
<p>Gourav</p>
Find more posts tagged with
Comments
pricher
<p>Hi Gourav,</p>
<p> </p>
<p>Instead of using "displayText", try using "value", as in </p>
<pre class="_prettyXprint _lang-">
params["x"].value.join(",")
</pre>
<p>Unfortunately, the displayText method of params seems to be broken...</p>
<p> </p>
<p>Since you have a license for iHub, you can always contact OpenText Support for further assistance. If you prefer to post to the forum, please tell us your version number and try to be a bit more specific about any error you get.</p>
<p> </p>
<p>Hope this helps,</p>
<p> </p>
<p>P.</p>
gourav2501
<p>Hello Pierre,</p>
<p> </p>
<p>Thanks for the details. The workaround suggested above will provide the values and not text. Suppose we have a multi select as mentioned below:</p>
<p> </p>
<p>Value: "1" , Display text "London"</p>
<p> </p>
<p>We want to display "London" on the report and not "1" . The above suggested solution will display "1". User expects "London" to be displayed on his report. Request you to please let us know the way we can display the same on report.</p>
<p> </p>
<p>Thanks in advance for your help.</p>
<p> </p>
<p> </p>
<p> </p>
<p>Regards,</p>
<p>Gourav</p>
pricher
<p>Hi Gourav,</p>
<p> </p>
<p>Maybe I was not clear in my previous post, but the displayText method of the parameter <em><strong>does not work</strong></em> when the parameter is set to multiple values. Simply put, <span style="color:#800000;"><span style="font-family:'courier new', courier, monospace;">params["x"].displayText.join(",")</span></span> will not work, even though <span style="color:#800000;"><span style="font-family:'courier new', courier, monospace;">params["x].value.join(",")</span></span> will.</p>
<p> </p>
<p>regards,</p>
<p> </p>
<p>P.</p>
mballou
<p><b>Gourav,</b></p>
<p> </p>
<p><b>I see that Pierre has answered your question on parameters with multi selects. Thank you Pierre,</b></p>
<p> </p>
<p><b>I wanted to introduce myself as the Technical Account Manager for Sony. My contact information will be in the signature below.</b></p>
<p> </p>
<p><b>As Sony is an OpenText Analytics (formerly Actuate BIRT) you have access to the OpenText Support team. You can open and manage tickets at: </b><a data-ipb='nomediaparse' href='
http://support.opentext.com'>support.opentext.com</a>
. </p>
<p> </p>
<p><b>Of course you can continue to use the BIRT Developer Center forum however you may find you get a quicker response by opening a ticket with the Support Team. </b></p>
<p> </p>
<p><b>Thank you, </b></p>
<p> </p>
<p><strong><span style="color:#1f497d;">Michelle </span></strong></p>
<p> </p>
<p> </p>
<p> </p>