OPF - Overwriting of Protected Fields by Helproutines

#### Search Results

Search

# OPF - Overwriting of Protected Fields by Helproutines

This Natural profile and session parameter specifies whether the content of a write-protected field (attribute definition `AD``=P`) can be overwritten by a helproutine assigned to the field.

Possible settings | `ON` | A helproutine assigned to a field can overwrite the field's content, even if the field is write-protected.
`OFF` | Helproutines cannot overwrite the contents of write-protected fields.
Default setting | `ON` |
Dynamic specification | yes |
Specification within session | yes |
Applicable statements | `SET GLOBALS` |
Applicable command | `GLOBALS` |
Application programming interface | `USR1005N` | See SYSEXT - Natural Application Programming Interfaces in the Utilities documentation.

Notes:

1. The `OPF` profile parameter only applies to the field for which a helproutine is invoked; it does not affect parameters explicitly passed to the helproutine. This means that the `OPF` profile parameter takes no effect if the field for which help is invoked is also explicitly specified as a parameter to be passed to the helproutine.
2. In addition, in reporting mode you can change the `OPF` setting using the statement `SET GLOBALS`.
3. Within a Natural session, the profile parameter `OPF` can be overridden by the session parameter `OPF`.