DataAreaSlicesAdd

Syntax

OpItemKey DataAreaSlicesAdd(string mon, DataAreaSlicesAddArg tArg)

Parameters

mon. Moniker for working with data source slices.

tArg. Parameters for creating a new data slice.

Description

The DataAreaSlicesAdd operation creates a new data slice for data source of analytical data area.

Comments

To execute the operation, in the mon field specify regular report instance moniker with the !DataArea!DataSources!<data source key>!DataSourceSlices postfix to work with data source slices, and in the tArg.type field specify the type of created data slice.

The moniker can be obtained on executing the OpenPrxMeta operation.

The operation results in the key of the created data slice.

Example

Below is the example of creating a new data slice for data source. The request contains moniker for working with data slices and the type of created slice. The response contains key of the created data slice.

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">
<DataAreaSlicesAdd xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">S1!M!S!P1!DataArea!DataSources!1!DataSourceSlices</mon>
<tArg xmlns="">
  <type>Pivot</type>
  </tArg>
  </DataAreaSlicesAdd>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<DataAreaSlicesAddResult 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">
  <k xmlns="">3</k>
  </DataAreaSlicesAddResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"DataAreaSlicesAdd" :
{
"mon" : "S1!M!S!P1!DataArea!DataSources!1!DataSourceSlices",
"tArg" :
{
"type" : "Pivot"
}
}
}

JSON response:

{
"DataAreaSlicesAddResult" :
{
"k" : "3"
}
}
public static OpItemKey AddSlice(string moniker, uint dataSourceKey)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tAdd = new DataAreaSlicesAdd()
{
tArg = new DataAreaSlicesAddArg()
{
type = EaxDataAreaSliceType.Pivot
},
mon = moniker + "!DataArea!DataSources!" + dataSourceKey.ToString() + "!DataSourceSlices"
};
//Add a slice for data source
var result = somClient.DataAreaSlicesAdd(tAdd);
return result;
}

See also:

Working With Regular Reports