Show contents 

Web Service > Web Service Operations > Working with Regular Reports > CancelDataAreaHierarchiesChanges

CancelDataAreaHierarchiesChanges

Syntax

bool CancelDataAreaHierarchiesChanges(string mon)

Parameters

mon. Moniker for working with regular report analytical data area.

Description

The CancelDataAreaHierarchiesChanges operation cancels the changes made to the custom hierarchy structure of the analytical data area slice dimension.

Comments

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.

Example

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.

SOAP request:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<CancelDataAreaHierarchiesChanges xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">CKBLCOMLGNPDGOAEOLMBENEEMJJPNLBEEJELMKJMFJMDPPKA!M!S!PJFDFHPMLGNPDGOAEIIKFLFJDIJHOCIHEOIELENPBPJCMFKEE!DataArea</mon>
  </CancelDataAreaHierarchiesChanges>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
  <CancelDataAreaHierarchiesChangesResult xmlns="http://www.fsight.ru/PP.SOM.Som" xmlns:q1="http://www.fsight.ru/PP.SOM.Som" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">1</CancelDataAreaHierarchiesChangesResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"CancelDataAreaHierarchiesChanges" :
{
"mon" : "CKBLCOMLGNPDGOAEOLMBENEEMJJPNLBEEJELMKJMFJMDPPKA!M!S!PJFDFHPMLGNPDGOAEIIKFLFJDIJHOCIHEOIELENPBPJCMFKEE!DataArea"
}
}

JSON response:

{
"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:

Working with Regular Reports