A script-enabled browser is required for this page to function properly.

Current Record Attribute Property

Description

Specifies the named visual attribute used when an item is part of the current record.

Applies to form, block, item

Set Oracle Forms, programmatically

Refer to Built-in

GET_FORM_PROPERTY

SET_FORM_PROPERTY

GET_BLOCK_PROPERTY

SET_BLOCK_PROPERTY

GET_ITEM_PROPERTY

SET_ITEM_PROPERTY

Required/Optional optional

Usage Notes

This property can be set at the form, block, or item level, or at any combination of levels. If you specify named visual attributes at each level, the item-level attribute overrides all others, and the block-level overrides the form-level.

Note that if you define a form-level Current Record Visual Attribute, any toolbars in the form will be displayed using that Current Record Visual Attribute. You can avoid this by defining block-level Current Record Visual Attributes for the blocks that need them instead of defining them at the form level. If you wish to retain the form-level Current Record Visual Attribute, you can set the block-level Current Record Visual Attribute for the toolbar to something acceptable.

Current Record Visual Attribute is frequently used at the block level to display the current row in a multi-record block in a special color. For example, if you define Vis_Att_Blue for the Emp block which displays four detail records, the current record will display as blue, because it contains the item that is part of the current record.

If you define an item-level Current Record Visual Attribute, you can display a pre-determined item in a special color when it is part of the current record, but you cannot dynamically highlight the current item, as the input focus changes. For example, if you set the Current Record Visual Attribute for EmpNo to Vis_Att_Green, the EmpNo item in the current record would display as green. When the input focus moved to EmpName, EmpNo would still be green and EmpName would not change.