Element.changeXMLPublicationState (Method)

Changes the XML publication state of an element on a page to 'Active' or 'Inactive'.

Returns:

Void

Arguments:

Name Type Required Description
pageID RealPageID Required A page's ID.
elementID ControlID Required An element's ID.
instanceID XMLPublicationInstanceID Required The XML publication instance's ID.
state XMLPublicationState Required The state to which CommonSpot change a feed's state: 'Active' or 'Inactive'.

Context:

License Requirements XMLPublication
Permission Requirements element:Author
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
65023 You cannot change the XML publications state if any of the corresponding XML publication definitions, formats, or bindings are inactive.

Notes:

None