YfcChangeListView

Description

This JavaScript function switches the current view to a list view. The list view is expected to have a pre-determined filter criteria, since this function does not accept any additional filter criteria.

Syntax

function yfcChangeListView(entity, searchViewId,maxrecords)

Input parameters

entity - Required. Entity to which the searchViewId belongs.

searchViewId - Required. Identifier of the search view to which you wish to switch.

maxrecords - Optional. Maximum number of records to display in the list view. To enhance performance, use this parameter. If this is not passed, it defaults to the value specified in the yfs.properties file.

Note: Use the INSTALL_DIR/properties/customer_overrides.properties file to set the yfs.ui.MaxRecords property.

Output parameters

None.

Example

The home page shows a list of alerts, up to a certain number, that has been set as the maximum number to display. To see a complete list of all alerts, the user can select the More Alerts operation. This operation is configured to call the yfcChangeListView() JavaScript function.