Read_Only_State - BaseData_Set
Determines whether save or delete operations will occur in this object's main table
Type: Property
Access: Read/Write
Data Type: Boolean
Parameters: None
Syntax
Property Boolean Read_Only_State
| Access Type | Syntax |
|---|---|
| Read Access: | Get Read_Only_State to BooleanVariable |
| Write Access: | Set Read_Only_State to BooleanVariable/Value |
Description
Set Read_Only_State to True
Read_Only_State is used to specify that the Data Dictionary cannot be directly used to save or delete records. This means that the messages Request_Save and Request_Delete sent to this Data Dictionary object (DDO) will generate an error and not perform an update.
Note that records in a read-only Data Dictionary can be indirectly changed by a save or delete sent to another Data Dictionary within the object structure, unless this DDO is for a parent table with pbForeignReadOnly set to True. For example, if the parent Customer DDO is set to read-only and the main Order Header DDO is not set to read-only, then saves and deletes in Order Header DDO will be allowed to change this Customer data. This is required to maintain database integrity. If you want an entire DDO structure to be read-only you should set all DDOs in the structure to read-only.
Read_Only_State is more likely to be set in a Data Dictionary object (DDO) and not a DD class.
See Also