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:
- From the System menu, select Page Design > Quick Grids.
- Do one of the following:
- To add an existing file - Click , select the JavaScript library file, and click Open.
- To edit an existing file or create a new file - Click 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:
- From the System menu, select Page Design > Quick Grids.
- 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.
- In the JavaScript File field, do one of the following:
- To add an existing file - Click , select the JavaScript library file, and click Open.
- To edit an existing file or create a new file - Click to open the JavaScript editor, write or update the code for the file directly in the editor, and click Save or Save and Close.
- 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:
|
- Adding and Editing Quick Grid JavaScript Files
- Adding Color Conditions to Quick Grid Cells
- Adding Software Controls and Metrics to Quick Grids
- Changing Grid and Cell Display Properties in Quick Grids
- Creating Quick Grids
- Designing Matrix Grids
- Designing Standard Grids
- Restricting Configuration for Quick Grids
- Software Control Types