Show contents 

Web Service > Web Service Operations > Working with Regular Reports > SetDataAreaSlice

SetDataAreaSlice

Syntax

bool SetDataAreaSlice(string mon, DataAreaSlice tArg)

Parameters

mon. Moniker for working with analytical data area slice.

tArg. Slice settings that should be determined.

Description

The SetDataAreaSlice operation changes analytical data area slice settings.

Comments

To execute the operation, in the mon field specify moniker of regular report instance with the DataArea!DataSources!source key!DataSourceSlices!slice key postfix to work with slice settings, and in the tArg field specify required slice settings. The moniker can be obtained on executing the OpenPrxMeta operation.

The operation results in the logical True if step settings were changed successfully.

Example

Below is the example of renaming data slice. The request contains moniker of analytical data area and new name. The response contains whether the slice is renamed successfully.

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">
<SetDataAreaSlice xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">MFMABINKFPPDGOAEOBOOGFNHBKBGDINECKCPBCDFBECFODJM!M!S!PJGOCAMNKFPPDGOAEBKLCKKHMBCAFDKDEMLAJMEJFLDNGLJMJ!DataArea!DataSources!1!DataSourceSlices!1</mon>
<tArg xmlns="">
  <k>1</k>
  <n>Expenses calculation</n>
  </tArg>
  </SetDataAreaSlice>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"SetDataAreaSlice" :
{
"mon" : "MFMABINKFPPDGOAEOBOOGFNHBKBGDINECKCPBCDFBECFODJM!M!S!PJGOCAMNKFPPDGOAEBKLCKKHMBCAFDKDEMLAJMEJFLDNGLJMJ!DataArea!DataSources!1!DataSourceSlices!1",
"tArg" :
{
"k" : "1",
"n" : "Expenses calculation"
}
}
}

JSON response:

{
"SetDataAreaSliceResult" : "1"
}
public static bool SetDataAreaSlice(string moniker, uint sourceKey, uint sliceKey)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tSet = new SetDataAreaSlice()
{
tArg = new DataAreaSlice()
{
k = sliceKey,
n = "Expenses calculation"
},
mon = moniker + "!DataArea!DataSources!" + sourceKey + "!DataSourceSlices!" + sliceKey
};
// Change analytical data area slice settings
var result = somClient.SetDataAreaSlice(tSet);
return result;
}

See also:

Working with Regular Reports