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:
-
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.
-
Right-click the entity object in the Application Navigator and choose
Edit EOName.
-
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.
-
Select Timestamp from
Type on the attribute settings page.
-
Click OK to save the attribute with the
new type.
To format an attribute using time only:
-
Open the Create Attribute wizard for
the attribute and select Control Hints.
-
Select Simple Date from
Format Type on the control hints page.
-
Edit Format to use the desired time
format. For example:
hh:mm:ss
-
Select Edit from C
ontrol Type on the control hints page.
-
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.
Related topics
About Control Hints for Business
Components Clients
Copyright © 1997, 2004, Oracle.
All rights reserved.