bool DataAreaSlicesDelete(string mon, OpItemKey tArg)
mon. Moniker for working with data source slices.
tArg. Key of deleted data slice of data source.
The DataAreaSlicesDelete operation deletes data slice of data source.
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.
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.
{
"DataAreaSlicesDelete" :
{
"mon" : "S1!M!S!P1!DataArea!DataSources!1!DataSourceSlices",
"tArg" :
{
"k" : "3"
}
}
}
{
"DataAreaSlicesDeleteResult" : "1"
}
public static bool DelSlice(string moniker, ulong dataSourceKey, ulong 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: