Previous
Previous
 
Next
Next

How To Create a List

To create a list you:

  1. Create the list by running the Create List Wizard.

  2. Add list entries by either creating them from scratch or by coping entries from an existing list. If you copy a list and it contains list items or entries, the list entries are also copied.

  3. Add the list to a page by creating a List region.

How you perform these steps is a personal preference. You can perform all three when you run the Create List Wizard. Alternatively, you can perform these steps one at a time.

Topics:

Creating a List from Scratch

To create a list:

  1. Access the Create/Edit Lists Wizard:

    1. On the Workspace home page, click the Application Builder icon.

    2. Select an application.

    3. On the Application home page, click Shared Components.

    4. Under Navigation, click Lists.

    5. Click Create.

  2. For Define List:

    1. Name - Enter a numeric or alphanumeric name for the list.

    2. List Template - Select a list template to control the appearance of your list.

      To view currently used list templates, view the List Template Utilization region.

    3. Build Option - If applicable, select a build option for this component. Build options are predefined settings that determine whether components within an application are enabled.

    4. Click Next.

  3. For Define List Entries, specify the following:

    1. List Entry Label - Enter a numeric or alphanumeric name for the list.

    2. Target Page ID or custom URL - Select a target page or enter a custom URL.

    3. Click Next.

  4. For Confirm, specify the following:

    1. Create List Regions - Select whether or not to create a list region. Options include:

      • Do not create list region(s)

      • Create list region on current page

      • Create list region for each target page

    2. Region Position - If creating a new region, select the region position.

    3. Region Template - If creating a new region, select a region template.

    4. Click Create.


Tip:

You can also create a list under Shared Components on the Page Definition. To learn more, see "Accessing the Page Definition", "Editing a Page in Tree View", and "Editing a Page in Component View"

Adding List Entries and Sublists

Once your list is created, you must add entries to it. You can add list entries from scratch, copy a list entry from within a list, or copy existing entries from one list to another.

You can also create hierarchical lists that contain sublists. To create a hierarchical list, you must:

Adding Entries or Sublists from Scratch

To add an entry or sublist from scratch:

  1. Navigate to the Lists page:

    1. On the Workspace home page, click the Application Builder icon.

    2. Select an application.

    3. On the Application home page, click Shared Components.

    4. Under Navigation, select Lists.

      The Lists page appears.

  2. Select a list.

    The Entries by List page appears.

  3. Click Create List Entry.

  4. Under Entry:

    1. Parent List Entry - If applicable, select the parent for this list entry. Use this attribute if you are creating a hierarchical list that will contain a sublist.

      Note this attribute does not appear if you are creating the parent list entry.

    2. Sequence - Indicate the order in which list the list entry appears. The sequence determines the order of evaluation.

    3. Image - Identify the file name for the image used to display this list entry. List templates control this attribute.

    4. Attributes - Identify the image attributes (such as width="12" height="12") for the list element image.

      Use the #LIST_LABEL# substitution string to reference the list label text. This substitution string allows for the title image attribute to be automatically set based on the value of the list label text. For example:

      title="#LIST_LABEL#"
      
    5. List Entry Label - Enter the label text for this link.

  5. Specify a target location.

    If the target location is a URL, specify the following:

    • Target Type - Select URL.

    • URL Target - Enter a URL. For example:

      http://www.yahoo.com
      

    If the target location is a page:

    1. Target Type - Select Page in this Application.

    2. Page - Specify the target page number.

      You can also select reset pagination for this page. Selecting this option causes the page to return to the first set of data meeting a user's new query.

      You can also select Printer Friendly. Selecting this option displays the target page using the application's Printer Friendly template. Printer friendly templates optimize a page for printing. "Changing the Default Templates in a Theme" and "Optimizing a Page for Printing".

    3. Request - Enter text to set the built-in application item REQUEST. This is also the item that is set with the name of a button that was clicked.

    4. Clear Cache - Specify the page numbers on which to clear cache. To learn more, see item Help. See "About Field-Level Help".

    5. To set session state (that is, give a listed item a value):

      • Set these items - Enter a comma-delimited list of item names for which you would like to set session state.

      • With these values - Enter a comma-delimited list of values for the items specified in the previous step.

        You can specify static values or substitution syntax (for example, &APP_ITEM_NAME.). Note that item values passed to f?p= in the URL cannot contain a colon. Additionally, item values cannot contain commas unless you enclose the entire value in backslashes (for example, \1234,56\).

  6. Under Current List Entry:

    1. List Entry Current for Pages Type - Specify when this list entry should be current based on the page type.

      List items can be current or non-current. Current list items use the current template; non-current list items use the non-current list item template. The actual condition and templates are defined in subsequent attributes.

    2. List Entry Current for Condition - Based on the selection above, define a condition to evaluate. When this condition is true, then the list item becomes current. To learn more, see item Help. See "About Field-Level Help".

  7. For Conditions, specify the appropriate information to make the list entry conditional.

  8. Under Authorization, you can specify an authorization scheme.

    This authorization scheme must evaluate to TRUE in order for this component to be rendered or otherwise processed.

  9. Under Configuration, select a build option for this component.

    Build options are predefined settings that determine whether components within an application are enabled.

  10. Under Click Counting, you can specify if you want the list entries to be included in the click count.

    If this is a link to an external page, such as www.google.com, you can count clicks. For more information, see "COUNT_CLICK Procedure" in Oracle Application Express API Reference.

  11. To specify additional attributes, use the User Defined Attributes section. For example, the following adds a tabindex and accesskey.

    tabindex="15" accesskey="D"
    
  12. When you are finished defining list attributes, click Create or Create and Create Another.

Copying List Entries Between Lists

You can copy list entries from one list to another.

To copy list entries between lists:

  1. Navigate to the Lists page.

    1. Navigate to the Workspace home page.

    2. Click the Application Builder icon.

    3. Select an application.

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

    5. Under Navigation, click Lists.

      The Lists page appears.

  2. Select the list to copy.

  3. On the Tasks list, click Copy List Entries from one List to Another.

  4. From Copy List Entries, select the list to copy to and click Next.

  5. Click Copy List Entries.

Copying a List Between Applications

You can copy a list from the current application or from another application.

To copy a list:

  1. Navigate to the Lists page.

    1. Navigate to the Workspace home page.

    2. Click the Application Builder icon.

    3. Select an application.

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

    5. Under Navigation, click Lists.

      The Lists page appears.

  2. Select the list to copy.

  3. On the Tasks list, click Copy List.

  4. Select one of the following:

    • List in this application

    • List in another application

  5. Follow the online instructions. To learn more, see item Help. See "About Field-Level Help".

Adding a List to a Page by Creating a Region

Once you create a list and list entries, the next step is to add it to a page by creating a region and specifying the region type as List.


See Also:

"Creating a New Template" and "List Templates" for information about altering list display

To add a list to a page:

  1. Navigate to the appropriate Page Definition. See "Accessing the Page Definition".

  2. On the Page Definition, add a list region:

    • Tree view - Under Page Rendering, right-click Regions and select Create.

    • Component view - Under Region, click the Create icon.

    The Create Region Wizard appears.

  3. For Region, select List as the region type and click Next.

  4. For Display Attributes, specify the following and click Next:

    • Title - Enter a title for the region. This title will display if the region template you choose displays the region title.

    • Region Template - Choose a template to control the look of the region.

    • Parent Region - Defines the parent region to which the new region belongs.

    • Display Point - Identify a display point for this region. There are two types of display points:

      • Page body positions are displayed where indicated by the #BODY# substitution string in the page template.

      • Page template positions are controlled by page template substitution strings (#REGION_POSITION_01#..#REGION_POSITION_08#). Page template region positions enable exact placement of a region within a template.

    • Sequence - Specify the sequence for this component. The sequence determines the order of evaluation.

    • Column - Indicate the column where this region is to be displayed. A page can have multiple regions, which can be displayed in different columns. Note that this attribute only applies to regions that are displayed in a Page Template Body position.

  5. For Source, select the list you want to add.

  6. Click Create List Region.

Repeat these procedures for each page where you would like to add a list.