You can customize away those UI elements that enable users to easily create new objects or modify/remove existing objects of a particular class by setting the value of the <changeable>-tag to false. Please note that this change removes the respective menu entries (i.e. menu entry to create new objects and the operations Edit and Delete, see Figure 4-2) ) from the user interface only, i.e. customizing away these UI elements does not prevent skilled users from getting access to the respective functionality as it is still available on the server.
To really prevent users from creating/modifying/deleting particular objects you need to set appropriate access levels - please refer to the openCRX Security Guide for details.
The following example shows how to customize away the creator menu for Postal Addresses (attached to Accounts) and the operations Edit and Delete on Postal Addresses (attached to Accounts).
Example 4-7. Example with changeable
. <org.openmdx.ui1.ElementDefinition name="org:opencrx:kernel:account1:PostalAddress"> <_object> <active>true</active> <changeable>false</changeable> <toolTip> <_item>Postal Address</_item> </toolTip> <label> <_item>Postal Address</_item> </label> <iconKey>PostalAddress</iconKey> </_object> <_content/> </org.openmdx.ui1.ElementDefinition> .
The above code removes the three UI elements crossed out in Figure 4-2.