Show contents 

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

ApplyDataAreaHierarchiesChanges

Syntax

bool ApplyDataAreaHierarchiesChanges(string mon)

Parameters

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

Description

The ApplyDataAreaHierarchiesChanges operation applies the changes in the custom hierarchy structure of the analytical data area slice dimension.

Comments

Changes are made using the SetDataAreaCustomDim operation. To execute the operation, 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 successfully applied.

Example

Below is the example of applying changes in a custom hierarchy. The request contains moniker for working with analytical data area. The response contains whether changes were applied successfully.

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">
<ApplyDataAreaHierarchiesChanges xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">CKBLCOMLGNPDGOAEOLMBENEEMJJPNLBEEJELMKJMFJMDPPKA!M!S!PJFDFHPMLGNPDGOAEIIKFLFJDIJHOCIHEOIELENPBPJCMFKEE!DataArea</mon>
  </ApplyDataAreaHierarchiesChanges>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
  <ApplyDataAreaHierarchiesChangesResult 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</ApplyDataAreaHierarchiesChangesResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

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

JSON response:

{
"ApplyDataAreaHierarchiesChangesResult" : "1"
}
public static bool ApplyDataAreaHierarchiesChanges(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tSet = new ApplyDataAreaHierarchiesChanges()
{
mon = moniker + "!DataArea"
};
// Apply changes in custom hierarchy
var result = somClient.ApplyDataAreaHierarchiesChanges(tSet);
return result;
}

See also:

Working with Regular Reports