Hi,
I´m writting this post as a extension of How to set a WEBI document to autorefresh each n seconds
One of the questions raised was if I knew how to dinamically jump from one report to another programatically.
Digging a little, I found out a solution.
It´s a simple script. So, here it is
I´m assuming that the document in which you´re setting the script has 3 or more reports.
1 - Drop a blank cell in your main webi report(the one from which your´re jumping to the other);
2 - Set its value to
<input type = "button" value ="Go to Report2" onclick="gotoReport(1)">
<br>
<br>
<input type = "button" value ="Go to Report3" onclick="gotoReport(2)">
<script>
function gotoReport(n) {
this.parent.selectReport(n);
}
</script>
3 - Set the cell Reading as property to HTML
Your document will render like this :
Attached is a sample WEBI file (.wid), in which I demonstrate the script. It´s on WEBI 4.1 SP5. The extension was renammed to .txt so I can post it here.
Regards,
Rogerio