Adding and Editing Quick Grid JavaScript Files

Note:  Users with the user roles listed to the right must also have the Template Access user role.

Using JavaScript, associate functions with cell events, such as on mouse over, within a quick grid cell. Save the JavaScript functions used in quick grids in a JavaScript library file that is saved for an individual grid if only one grid uses those functions, or at a global level if multiple grids use the functions.

It may improve performance to put some functions only in the local file, because if the global library file is large, it can affect the time it takes for the deliverable in the project to load.

Navigate to <server name>/help/quickgridapi/ for more information about base functions available and guidelines for writing your own functions.

To add or edit a JavaScript library file for all grids:

  1. From the System menu, select Page Design > Quick Grids.
  1. Do one of the following:
  • To add an existing file - Click Upload Icon, select the JavaScript library file, and click Open.
  • To edit an existing file or create a new file - Click Green Pencil Icon to open the JavaScript editor, write or update the code for the file directly in the editor, and click Save or Save and Close.

To add or edit a JavaScript library file for an individual grid:

  1. From the System menu, select Page Design > Quick Grids.
  1. Click the name of the quick grid to open it for editing.

To create a new quick grid or to copy an existing grid, see Creating Quick Grids.

The Enable Quick Grids Protected Mode parameter turns on and off grid protection. To modify a protected grid, an Administrator must set the parameter to 0.

  1. In the JavaScript File field, do one of the following:
  • To add an existing file - Click Upload Icon, select the JavaScript library file, and click Open.
  • To edit an existing file or create a new file - Click Green Pencil Icon to open the JavaScript editor, write or update the code for the file directly in the editor, and click Save or Save and Close.
  1. Click Save in the lower right corner of the page to save changes, Save and Close to save the configuration and close the editor, or Cancel to close the editor without saving changes.

Notes:   

  • To delete a JavaScript file associated with an individual quick grid, select the quick grid to display its details. In the JavaScript File field, click Grey Delete Icon and OK to save changes.
  • To delete a global JavaScript file, click Grey Delete Icon at the top of the Quick Grids page.