The GridConfiguration object is located in ATG Service Agent classes and extends the TableConfiguration class by allowing for additional customization using Dojo. The columns are defined in order in an array of ColumnConfiguration components. Refer to the Customization Best Practices section before modifying configuration files.

The properties for GridConfiguration are:

Property

Description

columns

The array of ColumnConfiguration components that specify the columns for the grid in display order.

dataModelPage

The page fragment component that contains the data model (for example, JSON). Include the full Nucleus path to the component.

detailFormId

The DOM ID of the form node to submit to retrieve an item detail.

formHandlerPath

The Nucleus path to the form handler that renders the results.

gridHeight

The value assigned to the height CSS style for the table to determine its visible height.

gridInstanceId

The JavaScript variable name that should be unique for each instance of the table in the application.

gridPage

The page fragment containing the grid implementation.

gridPath

The Nucleus path to the grid configuration component.

gridWidgetId

The Dojo ID of the table widget that should be unique for each instance of the grid in the application.

imageClosed

The file name of image to render when the grid item detail is not visible or closed.

imageOpen

The file name of image to render when the grid item detail is visible or open.

imagePath

The URL path to the images.

itemDetailPage

The page fragment component containing the item details (currently implemented as a hover pop-up).

pageBaseOffset

The base of the paging: 0 for 0-based paging, 1 for 1-based paging, etc.

pageIndexElementName

The element name of the page index form input.

progressNodeId

The optional ID for a DOM node to render status messages, such as ‘search in progress...’ or ‘No results found.’ etc.

rowsPerPage

The size of the result to send back from the form handler in each page.

searchFormId

The DOM ID of the form node to submit to retrieve orders.

selectLink

An anchor tag template with pattern replacement for selecting the item in the application.

viewLink

An anchor tag template with pattern replacement for viewing the item in the application.

The following is an example of the /atg/svc/agent/ui/tables/tables/ticket/
CustomerTicketGrid.properties
file, which uses the GridConfiguration class:

$class=atg.svc.agent.ui.tables.GridConfiguration

columns=\
       /atg/svc/agent/ui/tables/ticket/ViewLink,\
       /atg/svc/agent/ui/tables/ticket/Description,\
       /atg/svc/agent/ui/tables/ticket/CreatedDate,\
       /atg/svc/agent/ui/tables/ticket/Age,\
       /atg/svc/agent/ui/tables/ticket/Status,\
       /atg/svc/agent/ui/tables/ticket/Id,\
       /atg/svc/agent/ui/tables/ticket/SelectLink

rowsPerPage=10

gridHeight=450px
gridInstanceId=atg.svc.agent.ticket.historyGridInstance
gridPath=/atg/svc/agent/ui/tables/ticket/CustomerTicketGrid
gridWidgetId=atg_svc_agent_ticket_historyTable
progressNodeId=atg_svc_agent_ticket_historyGridStatus
searchFormId=ticketHistoryListForm

dataModelPage=/atg/svc/agent/ui/tables/ticket/TicketDataPage
gridPage=/atg/svc/agent/ui/tables/ticket/TicketGridPage

Each of the columns is configured using a property file, which identifies column properties. For example, the ViewLink.properties file that is referenced in the CustomerTicketGrid file:

$class=atg.svc.agent.ui.tables.ColumnConfiguration

defaultSort=ascending
field=viewLink
sortField=id
width=6em
resourceBundle=atg.svc.agent.ui.UserMessages
resourceKey=view-ticket
isVisible=true

dataRendererPage=/atg/svc/agent/ui/tables/ticket/ColumnRendererPage

These configuration files allow you to make specific changes to individual columns within the grid.


Copyright © 1997, 2013 Oracle and/or its affiliates. All rights reserved. Legal Notices