Alerts List Scrolls Unexpectedly in Browser

The information in this article applies to:

Product: Metastorm BPM
Version: 7.6 7.6.1

Issue

  • If a user's ToDo or Watch list includes vertical scroll bars, selecting a row causes the list to scroll to the top.

Resolution

  • This is a known issue.
Tagged:

Comments

  • Editing the file

     

    web\ie\scripts\alerts.js 

     

    so that the function paintSelectedRow reads:

     

    function paintSelectedRow(aRowToSelect, aDoScroll)

    {

     //Start Change

     aDoScroll = false;

     //End of Change

        if (SelectedRow != null)

        {

           SelectedRow.className = OldRowClassName;        

           SetDropDownClassName(SelectedRow, OldRowClassName);

        }

        OldRowClassName = aRowToSelect.className;

        

        var newClassName;

        

        // Selected priority 1 needs to be painted in different colour.

        if ( (OldRowClassName == "normalPriority1") || (OldRowClassName == "altPriority1") )

          newClassName = "selectedPriority1";

        else

          newClassName = "selected";

          

        aRowToSelect.className = newClassName;

        

        SetDropDownClassName(aRowToSelect, newClassName);

        alertsGrid.focus();

          

        if(aDoScroll)

        {

           if(aRowToSelect.rowIndex == 1)

             alertsGrid.rows(0).scrollIntoView();

           else    

            aRowToSelect.scrollIntoView();

        }  

        

        SelectedRow = aRowToSelect;        

    }   

     

    Resolves the issue.

  •  

    It seems you also need to amend:

        SetDropDownClassName(aRowToSelect, newClassName);

        alertsGrid.focus();

        if(aDoScroll)

    ......

     

    To:

     

        SetDropDownClassName(aRowToSelect, newClassName);

        //alertsGrid.focus();

        if(aDoScroll)

    .........

    Otherwise the grid will scroll to the top.