You can use the pagination feature to view large tables of data distributed across multiple pages. This feature enables you to organize and present large datasets efficiently, enhancing user experience and performance. This customization improves the browsing experience by enabling you to manage the information density according to your preference. It also reduces the page loading time. These settings are included in the SCM installer and are available, by default.
You can configure the following in the Web.config file:
- Number of records to be displayed in the table on each page
- Number of pages in which the records is to be distributed
- Option to go to the first, last, and remaining pages
The default configuration values in Web.config are:
<add key="GridAllowPaging" value="Default: false, BRWPCT: true, BRWFLD: true"/> <add key="GridPageSize" value="Default: 10, BRWPCT: 50, BRWFLD: 15"/> <add key="GridPageButtonCount" value="Default: 10, BRWPCT: 50, BRWFLD: 10"/> <add key="GridFirstPageText" value="First"/> <add key="GridLastPageText" value="Last"/> <add key="GridAllowUsersChangeSettings" value="true"/>
The following table defines the elements:
| Configuration Settings | Description |
|---|---|
| GridAllowPaging | This indicates whether the pagination feature is enabled or not. The
default value for this field is value="Default: false, BRWPCT:
true, BRWFLD: true. In this default value, pagination is enabled for Phrase Classification Settings and Field Settings tables but is not enabled for other tables. Note: This can be set to True for large tables
which need pagination and False for smaller
tables where pagination is not needed.
|
| GridPageSize | This indicates the number of rows or records on each page in a table.
The default value for this field is value="Default: 10, BRWPCT:
50, BRWFLD: 15
In this default value, 10 rows per page are displayed by default for other tables, 50 rows are displayed per page for Phrase Classification Settings table and 15 rows are displayed per page for Field Settings table. |
| GridPageButtonCount | This indicates the total number of pages in which the data needs to be displayed. The
default value for this field is Default: 10, BRWPCT: 50, BRWFLD:
10
In this default value, 10 pages are displayed by default for other tables, 50 pages are displayed for Phrase Classification Settings table and 10 pages are displayed for Field Settings table. |
| GridFirstPageText | This is the text to be displayed for the first page. The default value for this field is First. |
| GridLastPageText | This is the text to be displayed for the last page. The default value for this field is Last. |
| GridAllowUsersChangeSettings | This indicates if the settings can be modified using the SCM
application. To disable configuration change from SCM UI, GridAllowUsersChangeSettings=false. |
In this default value, 10 rows per page are displayed by default for other tables, 50 rows are displayed per page for Phrase Classification Settings table and 15 rows are displayed per page for Field Settings table.
- Application default is used in case no default value is provided. Default value can be entered like default:5, where 5 is the default value.
- Multiple table configuration is applicable only for GridAllowPaging, GridPageSize, GridPageButtonCount elements.
- The values for GridFirstPageText, and GridLastPageText elements are applicable for all tables.
Apart from the settings available in Web.config, the pagination settings are also available in the SCM application. These settings can be configured by users with Brainware admin role. Changes done to the Web.config file, results in users getting signed out and requires you to sign-in to the SCM application again. To avoid getting signed out, a user may choose to configure the application settings available in SCM, instead of modifying the Web.config. However, these application settings are applied only during the active session of the user. If the user logs out of the application, the application settings for pagination are reset to Web.config settings. SCM uses the application default values also in scenarios where the config default values are deleted or removed.
To modify the SCM application:
- On the SCM home page, click the Settings icon. The
Settings dialog box is displayed.
- Modify the settings, required. The settings are:
- Allow Paging: Enter true to enable pagination or false to disable pagination. The default value for this field is Default: false, BRWPCT: true, BRWFLD: true.
- Page Size: Enter a number to indicate the number of rows per page. The default value for this field is Default: 10, BRWPCT: 50, BRWFLD: 15.
- Page Button Count: Enter a number to indicate the total number of pages for the data. The default value for this field is Default: 10, BRWPCT: 50, BRWFLD: 10.
- First Page Text: Enter the text for the first page. The default value for this field is First.
- Last Page Text: Enter the text for the last page. The default value for this field is Last.
- Click Save. The settings are saved. You need to refresh the page or go to a different screen and come back to the current screen for the settings to take effect.
In this default value, 10 rows per page are displayed by default for other tables, 50 rows are displayed per page for Phrase Classification Settings table and 15 rows are displayed per page for Field Settings table.
- Application default is used in case no default value is provided. Default value can be entered like default:5, where 5 is the default value.
- Multiple table configuration is applicable only for Allow Paging, Page Size, Page Button Count fields.
- The values for First Page Text, and Last Page Text fields are applicable for all tables