Blackbaud BBIS/BBNC Edit Menu Doesn’t Work

posted in: BBIS & BBNC, Blackbaud | 0

Symptoms

  • Clicking the part’s edit menu does nothing.
  • You are using Bootstrap’s CSS files.
  • You receive the following error in the console window.

    Uncaught Sys.ArgumentOutOfRangeException: Sys.ArgumentOutOfRangeException: Value must be an integer.
    Parameter name: x

Solution

This happens because setLocation function checks to make sure the parameters are integers. Bootstrap’s CSS sometimes causes the menu’s position to resolve as a floating point number. By forcing the menu’s position to be an integer, the menu will appear.

  1. Make a backup of this file.
    NetCommunity\Client\Scripts\PaneEdit6.js
  2. Open this file in a text editor.
  3. find this function
    function ShowPaneMenu(paneObj)
  4. Modify this line (Line 308 at the time of this post)

    Sys.UI.DomElement.setLocation(menu, pos.left + 5, pos.top + 5);

    Replace with this code.

    Sys.UI.DomElement.setLocation(menu, parseInt(pos.left + 5), parseInt(pos.top + 5));

  5. Save the file.

Leave a Reply