##### Page (or Page Layout) > Page

# Insert Page

The Insert Page menu option is the first item in the Page menu. This item allows you to add a page to a stream as well as create new pages, edit existing pages, create copies of existing pages, and delete pages. The Insert Page option opens the Page List dialog box.

The Page List dialog box lists pages that have been defined but are not currently part of the selected stream. To add a page to the stream, select the page in the list and click OK. Inserting pages from the Page menu will insert the page above the currently selected page in a stream.

## Reference Filter

This filter allows the user to display All, Unused, or Used objects in the List.

## Add

You may add new pages to a project book by clicking the Add button. This opens the Page Properties dialog box.

### Page Label

The page label will appear in the corresponding Stream diagram.

### Page Name

Use the Page Name field to provide a name for the page. This name will appear in the Page Tree and is used internally. Page names cannot contain spaces and must be unique.

### Description

Use this field to provide a description of the page. This description is for informational purposes only and is not used anywhere else in the system. It is not required.

### Override Multi-row Tables

Tables are fields defined as a collection of other fields. Tables can either be defined as single row or multi-row tables. If this box is selected then all tables that appear on the script page will be treated as single row tables regardless of their definition.

### Capture as HTML Form when Using CAPTURE Action

When checked, this feature allows you to save the page in HTML format rather than to just capture the content of the page when using the capture action. This can be used to capture the layout of a letter or form and not just the contents/data on the form/letter.

### Don't Add to Page Stack

When checked, this feature will keep a page from being added to the page stack.

This is useful for pages that the Genesys Agent Scripting user wants to execute but not have the end user return to on a previous page action. For example if the Genesys Agent Scripting user has a blank page that only contains a page load event, that page may be skipped if the end user backs up.

### Generate Reporting Data

When this check box is selected, Reporting Data for this page will be generated as part of the Page Unload action. This is known as a "Reporting Data Collection Point".

Note: Reporting Data Collection Points are also displayed on the Visio Stream Diagrams as small yellow database icons on the Page Unload portion of the Page symbol.

### Reporting Marker

This is an optional user-defined text field that is used to categorize and/or group Agent Scripting Pages for reporting purposes.

### Template

A powerful feature of Genesys Agent Scripting is the use of templates for script page layouts. Using basic HTML structures, a template can be created in a text file, and then loaded into Genesys Agent Scripting. To format a script page based on template, select the name of the template from the template drop down.

CAUTION: If the user selects a template to be applied to an existing script page, the page’s content will be replaced with the template.

### Preview

Clicking Preview will open a browser with the template loaded.

### Layout

By default, Genesys Agent Scripting will use the page layout selected in the settings dialog box as the layout for a page. However, you can override the default layout by selecting one from the drop-down list.

### Load Action

This button allows you to define an action to occur when the page is loaded.

### Unload Action

This feature allows you to define an action that will run anytime the current page is about to unload. If for any reason during this action, the Alert command is encountered, the page unload is canceled. This is useful for doing validation of information prior to leaving a page.

### OK

Click OK to create the new page or save changes to the existing page and close the Page Properties dialog box.

### Cancel

Cancel closes the Page Properties dialog box without creating the new page or saving any changes made to an existing page.

## Edit

You may edit existing pages by selecting a page from the list and clicking the Edit button in the Page List dialog box. This opens the Page Properties dialog box.

## Copy

You may create a copy of the selected page by clicking the Copy button. Doing so will cause a confirmation message to appear.

- Click Yes to create a copy.

- Click No to cancel the copy.

## Delete

You can delete a page by selecting a page in the Page List dialog box and clicking the Delete button. This will cause a confirmation message to appear.

- Click No to cancel the delete.

- Click Yes to delete the selected page.

If a page is referenced by other objects, clicking Yes will not delete it. Instead, a message opens that allows you to view a cross reference of objects that use this page.

- Click No to return to the Page List.

- Click Yes to open the Object Cross Reference dialog box.

Until all of the references are removed, you cannot delete the page. Double-clicking each reference will take the user to the selected object.