DataAreaSlicesDelete

Syntax

bool DataAreaSlicesDelete(string mon, OpItemKey tArg)

Parameters

mon. Moniker for working with data source slices.

tArg. Key of deleted data slice of data source.

Description

The DataAreaSlicesDelete operation deletes data slice of data source.

Comments

To execute the example, 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 field specify key of deleted data source slice.

The moniker can be obtained on executing the OpenPrxMeta operation.

The operation returns True if the slice is deleted successfully.

Example

Below is the example of deleting data source's slice. The request contains moniker for working with data slices and key of deleted slice. The response contains whether visualizer is deleted 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">
<DataAreaSlicesDelete xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">S1!M!S!P1!DataArea!DataSources!1!DataSourceSlices</mon>
<tArg xmlns="">
  <k>3</k>
  </tArg>
  </DataAreaSlicesDelete>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"DataAreaSlicesDelete" :
{
"mon" : "S1!M!S!P1!DataArea!DataSources!1!DataSourceSlices",
"tArg" :
{
"k" : "3"
}
}
}

JSON response:

{
"DataAreaSlicesDeleteResult" : "1"
}
public static bool DelSlice(string moniker, uint dataSourceKey, uint sliceKey)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tDel = new DataAreaSlicesDelete()
{
tArg = new OpItemKey() { k = sliceKey },
mon = moniker + "!DataArea!DataSources!" + dataSourceKey.ToString() + "!DataSourceSlices"
};
//Delete data slice
var result = somClient.DataAreaSlicesDelete(tDel);
return result;
}

See also:

Working With Regular Reports