GetPivotFilterMetaData

Syntax

PivotFilter GetPivotFilterMetaData(string mon, PivotFilter tArg)

Parameters

mon. Moniker for working with data slice filtering settings.

tArg. Parameters for getting data filtering settings.

Description

The GetPivotFilterMetaData operation gets data filtering settings specified for data slice.

Comments

To execute the operation, in the mon field specify moniker of regular report moniker with the !DataArea!DataSources!<source key>!DataSourceSlices!slice key!Pivot!Filter postfix, and in the tArg field specify empty values or default values for the fields, which values should be obtained.

The moniker can be obtained on executing the OpenPrxMeta operation.

The operation returns the obtained data filtering settings.

Example

Below is the example of getting data filtering settings. The request contains moniker for working with filtering settings and a list of the fields, which values should be obtained. The response contains the requested settings.

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">
<GetPivotFilterMetaData xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">S1!M!S!P1!DataArea!DataSources!1!DataSourceSlices!1!Pivot!Filter</mon>
<tArg xmlns="">
  <enabled>false</enabled>
  <suppressEmptyCells>false</suppressEmptyCells>
  <suppressZeroCells>false</suppressZeroCells>
  <suppressNoNumericCells>false</suppressNoNumericCells>
  <separateHeaders>false</separateHeaders>
  </tArg>
  </GetPivotFilterMetaData>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetPivotFilterMetaDataResult 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">
  <enabled xmlns="">1</enabled>
  <suppressEmptyCells xmlns="">1</suppressEmptyCells>
  <suppressZeroCells xmlns="">0</suppressZeroCells>
  <suppressNoNumericCells xmlns="">0</suppressNoNumericCells>
  <separateHeaders xmlns="">0</separateHeaders>
  </GetPivotFilterMetaDataResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"GetPivotFilterMetaData" :
{
"mon" : "S1!M!S!P1!DataArea!DataSources!1!DataSourceSlices!1!Pivot!Filter",
"tArg" :
{
"enabled" : "false",
"suppressEmptyCells" : "false",
"suppressZeroCells" : "false",
"suppressNoNumericCells" : "false",
"separateHeaders" : "false"
}
}
}

JSON response:

{
"GetPivotFilterMetaDataResult" :
{
"enabled" : "1",
"suppressEmptyCells" : "1",
"suppressZeroCells" : "0",
"suppressNoNumericCells" : "0",
"separateHeaders" : "0"
}
}
public static PivotFilter GetPivotFilter(string moniker, uint dataSourceKey, uint sliceKey)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tGet = new GetPivotFilterMetaData()
{
tArg = new PivotFilter()
{
enabled = new bool(),
separateHeaders = new bool(),
suppressEmptyCells = new bool(),
suppressNoNumericCells = new bool(),
suppressZeroCells = new bool()
},
mon = moniker + "!DataArea!DataSources!" + dataSourceKey.ToString() + "!DataSourceSlices!" + sliceKey.ToString() + "!Pivot!Filter"
};
//Get information about data filter
var result = somClient.GetPivotFilterMetaData(tGet);
return result;
}

See also:

Working With Regular Reports