Most view attributes are part of the view object definition. However, at runtime, you can also add transient view attributes to a particular view object instance. These view attributes, called dynamic view attributes, will not affect other instances of the same view object.
To add an attribute to a view object instance at runtime:
addDynamicAttribute()
on the view object instance,
passing in a name for the attribute. For example, to add an attribute
called "TempAttr" to a view object instance mgrVO
, you would use the following code:
AttributeDef tempAttrDef = mgrVO.addDynamicAttribute("TempAttr");
This both adds the attribute and returns the attribute definition. For more information, see the related topics list.
Ways to Change View Object Queries at
Runtime
About Oracle ADF View
Objects
Finding View Object Instances
in the Data Model
About View
Object Attributes
Copyright © 1997, 2004, Oracle. All rights reserved.