Skip to content

Displayonly Field Property

Obsolete

Refer to the Field_Options property in the DataDictionary class.

See Also

Purpose

To prevent data entry to items connected to a field and prevent data from the items from being moved into the record buffer.

Syntax

set field_options field file.field to dd_displayonly

or

entry_item file.field {displayonly}

What It Does

When displayonly is on an entry_item command line, it causes the cursor to skip the item and prevents any data in the item from being put into the record buffer. Any data in the buffer pertaining to the item is displayed.

entry_item patient.weight {displayonly}

In this example, the contents of Fieldweight in Database File patient are displayed. The displayonly option prevents the cursor from stopping at the item and keeps any data in the item from going into the record buffer.

Applying dd_displayonly to a field in a DataDictionary object causes this same behavior in every item connected to file.field in any DEO that is using the DataDictionary object.

set field_options field patient.weight to dd_displayonly

Data entry to the field can be enabled in selected DEOs (or under selected conditions in the same DEO) by using the item_option ... displayonly message.

item_option item 4 displayonly false

This example illustrates the suspension of the displayonly field property for the fifth item of a DEO.

Notes

  • Displayonly is the equivalent of a combination of the noenter and noput field properties.
  • If an entry_item with a displayonly or noenter option is processed immediately before an entry_item with a retain option, the retain acts as if it were a retainall, and the second item cannot be cleared by any number of presses of the Clear accelerator key.