Web Service > Web Service Operations > Working with Regular Reports > ApplyDataAreaHierarchiesChanges
bool ApplyDataAreaHierarchiesChanges(string mon)
mon. Moniker for working with regular report analytical data area.
The ApplyDataAreaHierarchiesChanges operation applies the changes in the custom hierarchy structure of the analytical data area slice dimension.
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.
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.
{
"ApplyDataAreaHierarchiesChanges" :
{
"mon" : "CKBLCOMLGNPDGOAEOLMBENEEMJJPNLBEEJELMKJMFJMDPPKA!M!S!PJFDFHPMLGNPDGOAEIIKFLFJDIJHOCIHEOIELENPBPJCMFKEE!DataArea"
}
}
{
"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: