Skip to content

Noput Field Property

Obsolete

Refer to the Field_Options property in the DataDictionary class.

Purpose

To prevent data entered through an entry item from being moved into the record buffer.

Syntax

set field_options field file.field to dd_noput

or

entry_item file.field [
    {Noput [, ... , option]}
]

What It Does

When an entry item with a noput is executed, data from the item is not put back to the record buffer for file.field, even if new data is entered from the keyboard. Noput is useful for allowing data to be entered into an item for finding, where you do not wish to allow the field to be changed.

entry employee.num {noput}

In this example, data from Fieldnum in the Database File employee is displayed to the item on finds, and keyboard entry to the window is allowed, but data from the window is never put back to employee.num in the record buffer.

When dd_noput is applied to a field in a DataDictionary object using the field_options property, this behavior will be manifested in every DEO that is using the DataDictionary. It can be suspended in any DEO by use of the item_option ... noput message.

set item option item some_item noput false

In this example, the noput property for the item identified in the value of some_item is suspended for the DEO containing the item addressed.

Notes

  • Use the noput field property when you want to prevent users from changing data.
  • The display-only field property is a combination of the noput and noenter field properties.