Changing Private Permissions
Copy
You must add the @permission_id and @set attributes to a property node to be able to set private permissions for an xProperty. The @set attribute must contain the permission_id value.
The following example sets private permissions without changing the xProperty value:
<Item type="Part" action="update" id="0FA8ED...">
<xp-cost set="permission_id" permission_id="1FBA8E6…"></xp-cost>
</Item>
The following example sets private permissions and changes the xProperty value:
<Item type="Part" action="update" id="0FA8ED...">
<xp-cost set="permission_id|value" permission_id="1FBA8E6…">100</xp-cost>
</Item>
The following example sets private permissions to NULL value:
<Item type="Part" action="update" id="0FA8ED...">
<xp-cost set="permission_id" permission_id=""></xp-cost>
</Item>
The following example specifies that the permission should not be changed without using the @set attribute:
<Item type="Part" action="update" id="0FA8ED...">
<xp-cost permission_id=""></xp-cost>
</Item>
This AML does NOT change private permissions (because @set attribute is not added) and will NOT set value to NULL (because the absense of the @set attribute is the equivalent of “set=’’”).
You can use the UI to change a Private Permission. In the Item Form, for the given xProperty click the button next the xProperty field to make the change:
Figure 39.