The View Config tab holds the configurations that are applicable to the Simple Grid App View. Configure the View Configurations based on the description provided in the following table:
- Caching:
#
Field Name
Description
Sample Value
Caching
1 Enable Data Cache
Enable this option for scenarios where the underlying data source cannot support dynamic filter, sort, and group requests and can only return complete data set. This pulls the data from data source into an in-memory cache and performs all operations on the in-memory cache. Care must be taken when enabling this option to ensure that sizing based on usage needs are considered / factored before this is enabled.
Toggle on: Cache data from data source prior to processing.Toggle off: Gets data from data source.
2 Caching Scope
When Cache Data Indicator is 'Yes' enables the Caching Scope option.
App Instance: Indicate that caching from data source must be done for every instance of the App. This means that there will be more requests to the data source for every time the user navigates to the App across workspaces.
User Session: Indicates that the caching from data source is done at the Session level. This reduces the number of hits to the data source. This option must not be used for cases where within a session; the user does some activity and expects the cached data to change.
- Global Date Filter:
#
Field Name
Description
Sample Value
Global Date Filter
1 Enable Global Date Filter
Toggle on: Enables the following Global Date Filter options:
Column ID: Column ID of the column that is to be sorted.
Max Value: Sets the maximum value.
Max unit: Sets the unit of the 'Max value'.
Min Value: Sets the minimum value.
Min unit: Sets the unit of the 'Min value'.
Max Period Value: Sets the maximum period value.
Max period unit: Sets the unit of the 'Max period value'.
Global Period Value: Sets the global period value.
Global period unit: Sets the unit of the 'Global period value'.
Toggle off: Does not enable the Global Date Filter options.Toggle off
Click Maintain Global Date Filters to set new predefined date filter or modify the existing predefined date filters.
To add new predefined date filter, click Add New and provide the filter details based on the description provided in the following table:#
Field Name
Description
Sample Value
Global Date Filter
1 Maintain Global Date Filters
Predefined Date Filter window that allows the user to set the predefined date filters by a date column in the grid.
Following are the options available in the Predefined Date Filter window:
Filter ID: Provide specific ID for the date filter created.
Description: Enter a brief description of the filter.
Display Name Key: Enter the property driven label key.
Filter Unit: Select the unit based on which the filter to be applied for the grid. For example: Day, month etc.
Count: Enter the number of results that are to be displayed while the filter is applied.
Create: Click Create to create the predefined date filter. - Grid Configuration:
#
Field Name
Description
Sample Value
Grid Configuration
1 Group Header
Selected: Select this option to display a header text for a group of adjacent columns in the grid. When selected, it indicates a custom summary text (a custom column) will appear as header text for the grid columns for which the custom columns is chosen as the parent column. When this option is selected, the Parent Column ID field appears in the Basic Config section for the grid columns. You must specify the custom column as the parent for the required columns in the grid.
De-Selected: Indicates that the grid will not have any group header for the columns.2 Total Records
Selected: Displays the total number of results for the filters applied.
De-Selected: Does not display the total number of results for the filters applied.3 Context Column
Selected: Displays the dedicated Context Action column as the last column for the context menus. The context types of the menus appearing in the context column must be 'ICON'.
De-Selected: Context column will not be displayed.4 Column Ordering
Selected: Allows reordering the column from one position to another position in the grid.
De-Selected: Disables the column re-ordering option.5 Dynamic Filter
Selected: Allows filtering of data dynamically on page load.
De-Selected: Disables the dynamic filtering.6 Detail Action Indicator
Selected: Enables the double-click action on the view.
De-Selected: Disables the double-click action on the view.
The developer must use CWEC.CELL_DBLCLICK handler to write their double-click action logic.7 Initial Records to Display
Allows displaying the indicated number of records while rendering on the loading page.
8 Number of records to display per page
Allows displaying the indicated number of records on a page.
Allowed maximum limit is 45 records per page.
- Row Template
#
Field Name
Description
Sample Value
Row Template
1 Enable Row Template
Toggle on: Switch on the toggle to select a custom template for all the rows in the grid.
Select the template from the list that pops up once you switch on the toggle. To create a row template, refer Creating Templates.
Toggle off: Switch off the toggle if you do not want to select custom template for the rows. - Context Menu
Context menus are the pop-up menus that appear when right-clicking the apps. Usually the context menus are created for the record manipulation activities.
#
Field Name
Description
Sample Value
Context Menu
1 Enable Context Menu
Toggle on: Switch on the toggle to enable context menu for the grid.
Toggle off: Switch off the toggle if you do not want to enable context menu.2 Add New
Click Add New to add new context menu.
On clicking the Add New button, the configurations for the context menu appears as shown in the following screen shot. Provide the configurations for the new context menu based on the information available in the following table:#
Field Name
Description
Sample Values
1 Menu Id
A unique ID for your context menu.
INITIATE_PAYMENT
2 Menu Display Name Key
Label key of the localized text, which will appear as Menu Name.
LBL_INITIATE_PAYMENT
3 Event Id
Unique Event ID to be raised on click of the menu.
4 Context Type
Type of Context menu that must appear on the screen. The available options are:
- MENU
- ICON
- APP
MENU
5 Default Menu Id
Indicates the menu to be executed automatically when the current menu is clicked.
This option is applicable only when the Context Type is 'APP'.6 App Widget Id
Indicates the Context App to be shown automatically when the current menu is clicked.
This option is applicable only when the Context Type is 'APP'.7 Applicable for
Indicates for which channels the menu is applicable for. The options available are:
- Desktop
- Mobile
- Tablet
8 Create
Click Create to create the context menu.