If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

On click change color Drill-through definition

Started by spl_fr_mr, 08 Apr 2015 04:44:45 AM

Previous topic - Next topic

spl_fr_mr

Hello,
I have a report with a list (two fields).
in the first field, I use a drill-through definition.

at the execution of the report, the box (which contains the fields) has the color Red.
I wish, once the user clicks on a data in this field, the color of the box changes to green.

Thank you for your help

BigChris

I imagine you'd need some javascript to do that - I can't think of anything straight out of the box.

spl_fr_mr

yes indeed, I searched the internet but I can not find a track.
I used a html item before fields with the expression:
<div> <a href="#" onclick="this.style.color='green'">.
You should know that this expression works well without the drill-trhough.

Here's the code html generate the report page:


<td class="cRS38 lc" cid="0" uid="38" name="cRS38" type="datavalue">
<div>
<a href="#" onclick="this.style.color='green'">
<span dtTargets="<drillTarget drillIdx=\&quot;0\&quot; label=\&quot;Drill-Through Definition1\&quot; bookmarkRef=\&quot;Armeen\&quot;><drillParameter name=\&quot;sample\&quot; value=\&quot;Armeen\&quot;/><\/drillTarget>">
<span tabIndex="-1" class="hy" ctx="13:13:14:15:16:17:18:19:20:21:22:23">Armeen</span>
</span>
</a>
</div>
</td>
<td class="cRS46 lc" cid="2" uid="46" name="cRS46" type="datavalue">
<div>
<a href="#" onclick="this.style.color='green'">
<span tabIndex="-1" class="textItem" ctx="14:13:13:15:16:17:18:19:20:21:22:23">Unknown</span>
</a>
</div>
</td>



The first div on the field with the drill-trough
the second is a field without the drill-trough