Browser Detection Script checks if Internet Explorer 5.5 is being used and adjusts the font size if it is.
Oracle Help for the WebContentsIndexSearchView Topic


Edit Item Type: Attributes

Skip Navigation Links| Field Descriptions | Related Help Topics | Additional Information | Locating this Page |

Use this page to add attributes to an item type to extend its functionality beyond that of the base item types. An item type's attributes determine what information is stored about an item of that type. The attributes that you add here are included for item creation and editing where users can specify values for them.

Go to topField Descriptions

Item Type Attributes

Field Description
Available Attributes

Select the attributes that you want to add to the item type, and click Move Right to move them to the Selected Attributes list.

To move all attributes to the Selected Attributes list, click Move All Right.

Selected Attributes

Lists the attributes that have been added to the item type.

Click Move To Top Move Up Move Down Move To Bottom to change the order in which the attributes are displayed for item creation and editing.

To remove attributes from the item type, select them in the Selected Attributes list and click Move Left. To remove all attributes, click Move All Left.

Attribute Properties

Field Description
Display Name Displays the display name of the attribute. This display name is displayed as a label for the attribute in the add and edit item wizards for this item type.
Datatype Displays the type of data that the attribute stores.
Default Value

Enter the value to give to the attribute if users do not specify their own value when they add an item of this type. The attribute's default value is used for all items created of this item type. You can allow users to modify this value by including the attribute in the add and edit item wizards.

You can use PL/SQL expressions and function calls to determine the default value for an attribute. You must precede the expression or function call with a # character. The function being called must already exist in the database and must be prefixed with its owning schema.

Examples:

To set the default value of the Author attribute to the current user, enter:

  • #USER

To set the default value of the Publish Date attribute to the first day of the next month, enter:

  • #TO_CHAR(LAST_DAY(SYSDATE)+1, 'DD-MON-YYYY HH12:MI PM')

To set the default value of a custom Project ID attribute to the current project to which the current user is assigned, you would first need a function that returns the id of the project. The function might be something like the following (presuming that a user is assigned to only one project for any specified date):

create function GET_CURRENT_PROJECT return VARCHAR2 as
  project_id VARCHAR2 (30);
begin
  select pa.id
  into project_id
  from project_asignments pa
  where SYSDATE between pa.start and pa.end --selects the current assignment
  and pa.assignee = WWCTX_API.GET_USER; --gets the name of the current user
  return project_id;
end;

If this function has been created in the PROJECTS schema, enter the following in the Default Value field for the Project ID attribute:

  • #PROJECTS.GET_CURRENT_PROJECT

Notes:

  • You cannot pass attribute values as parameters to a function when it is called from an attribute default value. You can however pass PL/SQL expressions as parameters.
  • You can use expressions and function calls only for the default values of attributes, not for the actual values of attributes.
  • If you are using an expression to determine the default value of a date attribute, you must make sure that the date value is converted to the DD-MON-YYYY HH12:MI PM date format as shown in the second example above.
Required Select whether users must enter a value for this attribute. Attributes which are required will be displayed with the required icon Required.
Add Wizard Select whether the attribute should be included on the Add Item Wizard for this item type.
Edit Wizard Select whether the attribute should be included on the Edit Item Wizard for this item type.

Notes

Go to topRelated Help Topics

Concepts:

Next Steps:

Go to topAdditional Information

On Portal Center:

For more information go to the documentation section of Portal Center.

Go to topLocating this Page

  1. Click the Navigator link, then click the Page Groups tab.
  2. At the top level, click the link for the page group that owns the item type that you want to edit.
  3. Click the Item Types link.
  4. Click the Edit link in the row for the item type.
  5. Click the Attributes tab.

Tips: