XMLPublications.saveItemField (Method)
Saves or updates an item's field.
Returns:
Void
Arguments:
Name | Type | Required | Description |
---|---|---|---|
definitionID | XMLPublicationDefinitionID | Required | An XML publication definition's ID. |
itemFieldID | ID_0 | Required | An item field's ID. |
itemFieldName | XMLPublicationItemFieldName | Required | The item field's name. |
itemFieldDescription | PlainText | Optional. Defaults to an empty string. | The item field's description. |
itemFieldRequired | Boolean | Optional. Defaults to 'false'. | Boolean flag which when set to true indicates that this item field must be bound to an element's field. |
Context:
License Requirements | None |
Permission Requirements | site:ManageXMLPublications |
Deny Context | None |
Require Context | AuthoringEnabled |
Author Lock | (not required) |
Transaction Logging | If transaction logging is enabled at the site level, calls to this method will be logged |
Customization | This method may be customized at the site level |
Error Codes:
Code | Error Message |
---|---|
65009 | Item field name '$1' is already set. |
65020 | You cannot modify the publication definition ID and the item field ID when you are editing item field information. |
65021 | You cannot save XML item field information as it is associated with an inactive publication definition. |
Notes:
None