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)
PARAMETER PASSING PROBLEM
arunkumarb
Hi,<br />
I have a query in a dataset. <br />
<br />
select t.productid ,v.prodname,sum(t.<span style='color: #FF0000'>sep</span>_clbal_val_ptr) AS CL_BAL from tbl_summary_rate t<br />
left join hms_prod.viewproducts v on t.productid=v.productid<br />
group by t.productid order by v.prodname.<br />
<br />
Now If i pass a string by paramemeter, the coloured string should be changed dynamically.<br />
Thanks in advance,<br />
<br />
<br />
Regards,<br />
Arun
Find more posts tagged with
Comments
mwilliams
You can modify your query in the beforeOpen of your dataSet. So, you could run a replace() on your queryText to change the value you'd like to change if you have a parameter value to replace it. Hope this helps.
arunkumarb
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="85369" data-time="1321396302" data-date="15 November 2011 - 03:31 PM"><p>
You can modify your query in the beforeOpen of your dataSet. So, you could run a replace() on your queryText to change the value you'd like to change if you have a parameter value to replace it. Hope this helps.<br /></p></blockquote>
<br />
<br />
Hi Williams,<br />
Thanks for your reply. but i did not get you. plz let me know clearly.<br />
Regards,<br />
Arun
kabilan_n
Hi Arun,<br />
<br />
Hope this will help you<br />
<br />
<strong class='bbc'>this.queryText = this.queryText.replaceAll('sep', reportContext.getParameterValue("your_param_name") );</strong><br />
<br />
if your param value is 'aug' then 'aug' will replace 'sep'.<br />
<br />
Regards,<br />
Kabil
mwilliams
Thanks for clarifying for me, Kabil!