#8 Prevent JPivot from reseting scrollbars after a drill

closed
nobody
None
5
2008-03-10
2007-10-22
finiderire
No

Hi,

When I browse a JPivot table, each time I drill (e.g. click on the "+" in front of an All member), there is a reset on the scroll bars :
-the horizontal is back to left
-the vertical is back to top
So, the view is back to top-left.
That's a bad thing when you have lot's of dimensions because you have to re-scroll to find your data each time you drilled.
Maybe there is way to save the scroll bars position.

Here is a way of doing it : saving scrollbars position in cookies,

<script type="text/javascript">

function reFresh()
{
document.cookie = 'scrollTop=' + document.body.scrollTop;

document.location.reload(true);
}

window.onload = function()
{
var scrollTop = parseInt(document.cookie.replace(/scrollTop=([0-9]+)/, '$1'));
if (!isNaN(scrollTop))document.body.scrollTop = scrollTop;}
window.setTimeout("reFresh()",5000);/*replace with the drill action*/
</script>

Forum topic about this issue :
http://forums.pentaho.org/showthread.php?p=172084

Please comment.

a+, =)
-=Clément=-

Discussion

  • Andreas Voss

    Andreas Voss - 2008-03-10

    Logged In: YES
    user_id=36405
    Originator: NO

    There is also a WCF JSP tag that does this

     
  • Andreas Voss

    Andreas Voss - 2008-03-10
    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks