Web Service > Web Service Operations > Working with Regular Reports > CancelDataAreaHierarchiesChanges
bool CancelDataAreaHierarchiesChanges(string mon)
mon. Moniker for working with regular report analytical data area.
The CancelDataAreaHierarchiesChanges operation cancels the changes made to the custom hierarchy structure of the analytical data area slice dimension.
Changes are made using the SetDataAreaCustomDim operation. To cancel the changes, in the mon field specify moniker of opened regular report instance with the !DataArea postfix. The moniker can be obtained on executing the OpenPrxMeta operation.
The operation results in the logical true if changes are canceled successfully.
Below is the example of canceling changes in the custom hierarchy. The request contains moniker for working with analytical data area. The response contains whether changes are successfully canceled.
{
"CancelDataAreaHierarchiesChanges" :
{
"mon" : "CKBLCOMLGNPDGOAEOLMBENEEMJJPNLBEEJELMKJMFJMDPPKA!M!S!PJFDFHPMLGNPDGOAEIIKFLFJDIJHOCIHEOIELENPBPJCMFKEE!DataArea"
}
}
{
"CancelDataAreaHierarchiesChangesResult" : "1"
}
public static bool CancelDataAreaHierarchiesChanges(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tSet = new CancelDataAreaHierarchiesChanges()
{
mon = moniker + "!DataArea"
};
// Cancel changes in custom hierarchy
var result = somClient.CancelDataAreaHierarchiesChanges(tSet);
return result;
}
See also: