Creating a Time-only Input Format for Business Components Attributes

You can create a time format (without a date portion) to display an ADF Business Components attribute value that is SQLType DATE, but you must first change the attribute type definition on the attribute's entity object to Timestamp.

To change the attribute's type:

  1. Expand the Business Components Model project in the Application Navigator and locate the entity object that defines the attribute for which you want to create the format.
  2. Right-click the entity object in the Application Navigator and choose Edit EOName.
  3. In the Create Entity Object wizard, select Attribute Settings and select the desired attribute from the Select Attribute dropdown list.

    Note: By default the attribute should show a type of Date to match its database column type.

  4. Select Timestamp from Type on the attribute settings page.
  5. Click OK to save the attribute with the new type.

To format an attribute using time only:

  1. Open the Create Attribute wizard for the attribute and select Control Hints.
  2. Select Simple Date from Format Type on the control hints page.
  3. Edit Format to use the desired time format. For example:

    hh:mm:ss

  4. Select Edit from C ontrol Type on the control hints page.
  5. Click OK to save the format for the attribute.

You can bind your ADF-enabled components to the Business Components attribute to display the formatted value.


About Control Hints for Business Components Clients

 

Copyright © 1997, 2004, Oracle. All rights reserved.