Web Service > Web Service Operations > Working with Regular Reports > SetDataAreaSlice
bool SetDataAreaSlice(string mon, DataAreaSlice tArg)
mon. Moniker for working with analytical data area slice.
tArg. Slice settings that should be determined.
The SetDataAreaSlice operation changes analytical data area slice settings.
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.
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.
{
"SetDataAreaSlice" :
{
"mon" : "MFMABINKFPPDGOAEOBOOGFNHBKBGDINECKCPBCDFBECFODJM!M!S!PJGOCAMNKFPPDGOAEBKLCKKHMBCAFDKDEMLAJMEJFLDNGLJMJ!DataArea!DataSources!1!DataSourceSlices!1",
"tArg" :
{
"k" : "1",
"n" : "Expenses calculation"
}
}
}
{
"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: