Adding procedure calls to a custom folder type

You can add procedure calls to folder types and pass attributes as parameters to those called procedures. For information about adding attributes to a folder type, see Adding attributes to a custom folder type.

You must be the content area administrator, the portal administrator, or have Manage privileges on All Content Areas to add procedure calls to a folder type.

To add procedure calls to a folder type:

  1. In the Navigator, click the Content Areas tab.

  2. Navigate to the following path:

    Path: Content Areas > ContentAreaDisplayName > Custom Types > Folder Types

    where ContentAreaDisplayName is the content area in which the custom folder type was created.

    Note: If the custom folder type is shared, it will be in the Shared Objects content area.

  3. In the row for the custom folder type that you want to edit, click Edit.

  4. Click the Procedures tab.

  5. In the Type list, choose whether the procedure call is to an HTTP or PL/SQL procedure.

  6. In the Procedure Call field, enter one of the following:

    • The URL of the HTTP procedure, including the protocol used to access it, for example http://search.healthyliving.com.

    • The name of the PL/SQL procedure, for example SCOTT.SOME_PROC. The procedure must already exist in the database and must be prefixed with its owning schema.

  7. In the Link Text field, enter the text to display as a hypertext link in the main banner of a folder of this type. Users click this link to execute the procedure call.

    Note: This link is displayed only if you do not select Display Procedure Results With Folder, or you have not specified an icon.

  8. (Optional) In the Icon field, enter the path and file name of an image to associate with this procedure call. This icon is displayed instead of the value entered in the Link Text field.

    Click Browse to locate the image if you are not sure of its path or file name.

    Note: If you specify an icon, you must still enter a value in the Link Text field.

  9. (Optional) Select Display Procedure Results With Folder to display the results of the procedure call directly in a folder of this type instead of displaying a link for users to click to execute the procedure.

    This is useful if you want the procedure results to be immediately visible to users, rather than requiring them to execute the procedure call themselves by clicking the link.

  10. (Optional) If the procedure being called has parameters, you can pass attributes to those parameters.

    1. In the Attribute list, choose the attribute to pass to the parameter in the procedure.

      Note: This list includes any additional attributes added to the custom folder type as well as the default attributes.

    2. In the Pass As field, enter the parameter name if it is different from the attribute name.

  11. Click Apply to add the procedure call to the custom folder type and display it in the Existing Procedure Calls section.

  12. To add more procedure calls, repeat Steps 5 through 11.

  13. Click OK.

Notes

  • You cannot add procedure calls to base folder types.

  • To delete a procedure call from a custom folder type, click next to the procedure call in the Existing Procedure Calls section. To edit an existing procedure call, click next to the procedure call in the Existing Procedure Calls section. You can then edit the procedure call properties in the Procedure Call Properties section, and click Apply to save your changes.

Related topics

Creating a custom folder type
Changing a custom folder type's basic properties
Adding attributes to a custom folder type

Deleting a custom folder type
What is a folder?