bool DataAreaViewsDelete(string mon, OpItemKey tArg)
mon. Moniker containing information about the data source and data slice, for which the deleted visualizer was created.
tArg. Key of the visualizer that should be deleted.
The DataAreaViewsDelete operation deletes regular report visualizer.
The operation deletes the visualizer that displays data from some data source of analytical data area. To execute the operation, in the mon field specify regular report instance moniker with the !DataArea!DataSources!<data source key>!DataSourceSlices!<slice key>!Views postfix to work with visualizers, and in the tArg field specify key of deleted visualizer.
The moniker can be obtained on executing the OpenPrxMeta operation.
The operation returns True if the visualizer is deleted successfully.
Below is the example of deleting the visualizer created for data slice. The request contains moniker for working with specified slice visualizers and key of deleted visualizer. The response contains whether visualizer is deleted successfully.
{
"DataAreaViewsDelete" :
{
"mon" : "S1!M!S!P1!DataArea!DataSources!1!DataSourceSlices!1!Views",
"tArg" :
{
"k" : "4"
}
}
}
{
"DataAreaViewsDeleteResult" : "1"
}
public static bool DelView(string moniker, ulong sourceKey, ulong sliceKey, ulong viewKey)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tDel = new DataAreaViewsDelete()
{
tArg = new OpItemKey() { k = viewKey }
,
mon = moniker + "!DataArea!DataSources!"+ sourceKey.ToString() + "!DataSourceSlices!" + sliceKey.ToString() + "!Views"
};
//Delete visualizer
var result = somClient.DataAreaViewsDelete(tDel);
return result;
}
See also: