bool DataAreaSourcesDelete(string mon, OpItemKey tArg)
mon. Moniker for working with data sources of regular report analytical data area.
tArg. Key of deleted data source.
The DataAreaSourcesDelete operation deletes data source of analytical data area.
To execute the operation, in the mon field specify regular report opened instance moniker with the !DataArea!DataSources postfix to work with data sources, and in the tArg field specify key of deleted data source.
The moniker can be obtained on executing the OpenPrxMeta operation.
The operation returns True if data source was deleted successfully.
Below is the example of deleting data source of analytical data area. The request contains moniker for working with data sources and key of deleted data source. The response contains whether visualizer is deleted successfully.
{
"DataAreaSourcesDelete" :
{
"mon" : "S1!M!S!P1!DataArea!DataSources",
"tArg" :
{
"k" : "3"
}
}
}
{
"DataAreaSourcesDeleteResult" : "1"
}
public static bool DelDataSource(string moniker, ulong datasourceKey)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tAdd = new DataAreaSourcesDelete()
{
tArg = new OpItemKey()
{
k = datasourceKey
},
mon = moniker + "!DataArea!DataSources"
};
//Add a data source
var result = somClient.DataAreaSourcesDelete(tAdd);
return result;
}
See also: