PivotDimElementTotal GetPivotDimElementTotal(string mon, PivotDimElementTotal tArg)
mon. Moniker for working with totals.
tArg. Operation execution parameters.
The GetPivotDimElementTotal operation gets settings of own total type calculation for a dimension element.
To execute the operation, in the mon field specify moniker of regular report instance with the !DataArea!DataSources!source key!DataSourceSlices!slice key!Pivot!Totals postfix to work with totals, and in the tArg field specify dimension key and element key, for which settings will be obtained. The moniker can be obtained on executing the OpenPrxMeta operation.
The operation results in the obtained own total type calculation settings for a dimension element.
Below is the example of getting own total type calculation settings for a dimension element. The request contains moniker for working with totals, dimension key, and element key. The response contains the obtained total calculation settings.
{
"GetPivotDimElementTotal" :
{
"mon" : "IGKCBLACHJHFGOAECPFHIBAHKDNEEELENJKICJHOLDFGIJAG!M!S!PPMAJAPACHJHFGOAEPIAFFPEFHCEHPGKELLHHEFOLEHCDAEHK!DataArea!DataSources!1!DataSourceSlices!1!Pivot!Totals",
"tArg" :
{
"elementKey" :
{
"key" : "1"
},
"dimKey" : "116"
}
}
}
{
"GetPivotDimElementTotalResult" :
{
"elementKey" :
{
"key" : "1"
},
"dimKey" : "116",
"type" : "Avg",
"enabled" : "1"
}
}
public static PivotDimElementTotal GetPivotDimElementTotal(string moniker, uint dataSourceKey, uint sliceKey, uint dimKey, string elKey)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetPivotDimElementTotal()
{
tArg = new PivotDimElementTotal()
{
dimKey = dimKey,
elementKey = new ElKey(){ key = elKey }
},
mon = moniker + "!DataArea!DataSources!" + dataSourceKey + "!DataSourceSlices!" + sliceKey + "!Pivot!Totals"
};
// Get own total type calculation settings for a dimension element
var result = somClient.GetPivotDimElementTotal(tGet);
return result;
}
See also: