PivotHeaderFilter GetPivotHeaderFilterMetaData(string mon, PivotHeaderFilter tArg)
mon. Moniker for working with data slice header filter.
tArg. Parameters for getting filtering settings.
The GetPivotHeaderFilterMetaData operation gets filtering settings for data slice header.
To execute the operation, in the mon field specify regular report instance moniker with the !DataArea!DataSources!<data source key>!DataSourceSlices!<slice key>!Pivot! postfix. This moniker should also be appended with one of the following values:
TopHeade!HeaderSettings!Filter - to work with columns header filter.
LeftHeader!HeaderSettings!Filter - to work with rows header filter.
The moniker can be obtained on executing the OpenPrxMeta operation.
In the tArg field set empty values or default values for the fields, which values should be obtained. The operation returns obtained filtering settings for data slice header.
Below is the example of getting filtering settings specified for data slice columns header. The request contains moniker for working with header filtering settings and the list of fields, which values should be obtained. The response contains the requested settings.
{
"GetPivotHeaderFilterMetaData" :
{
"mon" : "S1!M!S!P1!DataArea!DataSources!1!DataSourceSlices!1!Pivot!TopHeader!HeaderSettings!Filter",
"tArg" :
{
"enabled" : "false",
"suppressEmptyCells" : "false",
"suppressZeroCells" : "false",
"suppressNoNumericCells" : "false"
}
}
}
{
"GetPivotHeaderFilterMetaDataResult" :
{
"enabled" : "1",
"suppressEmptyCells" : "1",
"suppressZeroCells" : "0",
"suppressNoNumericCells" : "0"
}
}
public static PivotHeaderFilter GetPivotHeaderFilter(string moniker, uint dataSourceKey, uint sliceKey)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tGet = new GetPivotHeaderFilterMetaData()
{
tArg = new PivotHeaderFilter()
{
enabled = new bool(),
suppressEmptyCells = new bool(),
suppressNoNumericCells = new bool(),
suppressZeroCells = new bool()
},
mon = moniker + "!DataArea!DataSources!" + dataSourceKey.ToString() + "!DataSourceSlices!" + sliceKey.ToString() + "!Pivot!TopHeader!HeaderSettings!Filter"
};
//Get information about header filter
var result = somClient.GetPivotHeaderFilterMetaData(tGet);
return result;
}
See also: