Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

Overview

Deletes all children that have State attribute set to 'Deleted' value.

void myXml.CommitDeletes()

Remarks

Container form controls, by default, instead of deleting nodes directly, sets the State attribute to 'Deleted' value. After required actions have been performed, these marked nodes should be deleted if not needed.

This method internally uses //*[@*[local-name()='State']='Deleted'] xpath query to find deleted children on current node.

Example

Commit deleted nodes

$Xml.CommitDeletes();

Example

Commit deleted nodes on specific path

$Xml.SelectAll('//Contacts/Contact', function() {
this.CommitDeletes()
});
  • No labels