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
I imagine you'd need some javascript to do that - I can't think of anything straight out of the box.
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=\"0\" label=\"Drill-Through Definition1\" bookmarkRef=\"Armeen\"><drillParameter name=\"sample\" value=\"Armeen\"/><\/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