Previous
Previous
 
Next
Next

How To Create a Tree

To create a tree:

  1. Navigate to the Shared Components page:

    1. Navigate to the Workspace home page.

    2. Click the Application Builder icon.

    3. Select an application.

    4. On the Application Builder home page, click Shared Components.

  2. Under Navigation, click Trees.

    The Trees page appears.

  3. Click Create.

    The Create Tree Wizard appears. Note that each wizard page displays a series of blocks on the left, representing the sequence of steps. The highlighted block indicates the step you are performing.

  4. For Page Attributes, enter basic page information and click Next.

    To learn more about a specific item on a page, click the item label. A Help window appears with a description of the item or field.

  5. For Tab, specify how tabs should be implemented and click Next.

  6. For Tree Attributes:

    1. Tree Name - Enter a name.

    2. Default Expanded Levels - Specify the number of default expanded levels.

    3. Start Tree - Specify how you want to determine the starting point. This determines what point in the hierarchy you want to display.

      - Based on New Item with Popup List of Values - Select this option to set up an item containing a list of values. This option enables the user to determine the starting point to display by selecting an option for the list of values.

      - Based on a SQL Query - Select this option to write a query that dynamically finds the starting point of a hierarchy (the entry with no parent).

      - Static Value - Select this option to hard code the starting point.

    4. Click Next.

  7. For Tree Template, select a template and click Next.

  8. For Tree Start, specify a starting point and click Next. Depending on your Start Tree selection, enter either a query or a single value.

  9. For Expand/Collapse, select the buttons to include and click Next.

  10. For Table/View Owner, specify the owner of the table on which the tree will be based and click Next.

  11. For Table/View Name, specify the name of the table on which the tree will be based and click Next.

  12. A tree is based on a query and returns data that can be represented in a hierarchy. This hierarchy is determined by the relationship between ID and Parent ID values. Identify the column you want to use as the ID, the Parent ID, and specify the text that should appear on the leaf nodes.

    1. ID - Enter the column you want to use as the ID.

    2. Parent ID - Enter the Parent ID.

    3. Leaf Node Text - Specify the text that should appear on the leaf nodes.

    4. Link Option - Select Existing Application Item to make the leaf node text a link. If you select this option, specify a page to link to.

  13. Identify an optional where and order by clause to add to your query.

  14. Specify the display text for the Go button.

  15. Identify the page you want to branch to when the user clicks a button.

  16. Click Finish.