You are here: 1 – Setup > 1.4 Viewpoint customization > Customizing Viewpoint with the DataviewConfig.groovy file

Customizing Viewpoint with the DataviewConfig.groovy file

With the release of version 7.2.10, many of the existing Viewpoint GWT pages have been replaced with DataView pages. DataView is the Viewpoint architecture for acquiring, manipulating and displaying large data sets. All DataView pages allow for customization using the external DataviewConfig.groovy file found in the $VIEWPOINT_HOME directory. The following DataView pages are included in Viewpoint:

Each of the pages is mapped with the name of the page in the DataviewConfig.groovy file. Viewpoint provides validation help on the Viewpoint Configuration page, and each page section is validated independently. For more information, see Fields: DataviewConfig.groovy validation.

Within each page section of the DataviewConfig.groovy file are four configurable elements:

Element Description
sort

Defines how the list sorts by default on page load. For example, {"sort":[{"Name":"ASC"}]} means that by default, the page will sort on the "Name" column in ascending order.

The syntax allows you to set up an array of sort columns.

For information about configuring the page's default sort settings, see Configuring the default sort.

page

Defines which page of items the list will open to by default on page load. It also defines how many items per page will display. For example, {"number":0, "count":100} means that the page will open on page number 0 (the first page) and there will be 100 items on the page.

For information about changing the page configuration, see Configuring paging.

filter Defines how the page filters. By default, there is no filter applied until the user performs a search. If you want to configure and apply a default filter, you can. For more information, see Configuring the default filter.
view Defines what the item table will look like. It defines column order, visibility, filterability, sortability, title, and width. For information about customizing these elements on DataView pages, see Customizing the view elements.

These elements map to fields in the MWS MongoDB. For information about MongoDB, see the MongoDB documentation. For information about MWS, see the MWS Resource documentation.

The topics contained in this section explain how to customize each of these elements to suit your specific needs so that you can display your DataView pages in Viewpoint just the way you want them.

Related topics 

© 2015 Adaptive Computing