Create a Service Page
Since these pages are non-interactive, the user configured as the “Service” user (Configuration > Parameters > Service Options > Service User ID) must have permissions to this page. This is to ensure the events on the page can be executed.
A Service page requires a table, but is not displayed in the Stewardship Tier. The OnValidate event for a Service page runs for every record that appears in its table on a regularly scheduled basis based on the page properties. A Service page can be as simple as a view. The view could point to all records in a table where an OnValidate event sends an email for each record in the table.
To create a Service page:
- Select Admin > WebApps in the Navigation pane.
- Click the Pages icon for a WebApp and click Add.
- Click the WebApp name in the Navigation pane.
Click the Change Settings icon on the Site toolbar, click Design, and click Add.
- Enter the page name in the DESCRIPTION field.
- Select Service in the PAGE TYPE list box.
- Select the table where the service page data is to be stored in the TABLE list box.
- Click Save.
- Click Vertical View.
- Click the Service Properties tab.
Select Service Pages from the Queue ID list box.
NOTE: A Service page must be assigned to a queue to be executed by the service.
Enter a date for Next Service Date.
NOTE: The Next Service Date field does not normally need to be completed unless the user wants the Service page to run on a particular date at a particular time and not interval X from now as stated in the Service Qty and Service UOM.
- Enter a value for Service Qty.
Select an option from the Service UOM list box.
NOTE: The Service UOM field uses the Qty value. For example, if the service page is to run once every 24 hours, enter 1 for Service Qty and select Day(s) for Service UOM.
NOTE: The Service Qty and Service UOM are used to compute the Next Service Date. If the Next Service Date field is populated, then the service page overrides these values. If the Next Service Date field is NULL, then the service page runs immediately.
NOTE: When the interval is set, the OnValidate event runs against the data provided in the Horizontal View. This means, if the view returns N records, the OnValidate event runs against each of the N records.
- Click the Active check box to enable it.
- Click Save.
NOTE: After saving the Service page, it is automatically registered on the Service Pages page.