Develop > Tailoring > Data management > Data Policy > Data Policy expressions

Data Policy expressions

Data Policy rules apply to the GUI presentation of data. This allows some degree of data control into your system without the need to construct numerous different forms and views.

For example:

  • In the Invisible or Read Only fields, you specify an expression. If this expression evaluates to true at the time the record is opened, any controls referencing the field in question are set to read-only or visible, as appropriate
  • If you want only System Administrators to be able to modify the contact.name field in the contacts file, use this expression: index("SysAdmin", $lo.ucapex)>0

The record’s database dictionary record defines the fields available on a file’s Data Policy record. You cannot add new fields directly to a Data Policy record.

To see your changes to Data Policy you must restart the client by logging out of the system and logging in again.