Create Pages From Fragments

You can create pages starting with the contents of a fragment, essentially using the fragment as a page template. You can do this so long as the fragment is available for use in pages.

  1. To make your fragment available as page-level content:
    1. Open the fragment and click Settings to open the Settings editor.
    2. In the Used For field, select page.
    3. Set a custom icon for the fragment. The icon can then be used to identify the fragment in the Create Page dialog as well as the Flow Diagram.
  2. To create a page using a fragment as the page's template:
    1. Open your application and expand the flow where you want to add a page.
    2. Click the Create Page icon ( Create Page icon ) next to the flow, then select Create Page.
    3. Enter the name of the new page in the Page ID field of the Create Page dialog box. By convention, a page name has its flow name as a prefix.
    4. Under Choose Page Content, select the fragment that you want to use with the page.
    5. Click Create.
A new page, with the contents of the selected fragment added to it, opens in the Page Designer. You can now wire up the page for the necessary fragment parameters.

If your fragment's properties were customized, what you see on the page's Properties pane will be different. Instead of the standard page-level properties, you'll see fragment properties that the fragment author chose to highlight. Here's an example where the author has customized the fragment's properties, so that its business object, dynamic components, and input parameters show in separate sections when the page is selected:
Description of fragpropertiesonpage-sectioned.png follows
Description of the illustration fragpropertiesonpage-sectioned.png

(To view the page's Properties pane, make sure no component or element is selected on the page. If you need to, simply click an empty area on the page.)

The page's Structure view also changes, with the fragment considered the root element, instead of the page.