Web Service > Web Service Operations > Working with Regular Reports > ClearDataAreaHierarchy
bool ClearDataAreaHierarchy(string mon)
mon. Moniker for working with regular report analytical data area.
tArg. Operation execution parameters.
The ClearDataAreaHierarchy operation resets the custom hierarchy that was set up for the analytical data area slice dimension.
To execute the operation, in the mon field specify regular report instance moniker with the !DataArea postfix to work with analytical data area, and in the tArg field specify the slice and the dimension, for which the custom hierarchy should be reset. The moniker can be obtained on executing the OpenPrxMeta operation.
The operation results in the logical true if the custom hierarchy is reset successfully.
Below is the example of resetting custom hierarchy for a slice dimension. The request contains moniker for working with analytical data area, key of the slice and the dimension, for which custom hierarchy should be reset. The response contains whether the custom hierarchy was reset successfully.
{
"ClearDataAreaHierarchy" :
{
"mon" : "CKBLCOMLGNPDGOAEOLMBENEEMJJPNLBEEJELMKJMFJMDPPKA!M!S!PJFDFHPMLGNPDGOAEIIKFLFJDIJHOCIHEOIELENPBPJCMFKEE!DataArea",
"tArg" :
{
"sliceKey" : "1",
"dimKey" : "116"
}
}
}
{
"ClearDataAreaHierarchyResult" : "1"
}
public static bool ClearDataAreaHierarchy(string moniker, uint sliceKey, uint dimKey)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tSet = new ClearDataAreaHierarchy()
{
tArg = new ClearDataAreaSliceHierarchy()
{
sliceKey = sliceKey,
dimKey = dimKey
},
mon = moniker + "!DataArea"
};
// Reset custom hierarchy
var result = somClient.ClearDataAreaHierarchy(tSet);
return result;
}
See also: