DataAreaViewsDelete

Syntax

bool DataAreaViewsDelete(string mon, OpItemKey tArg)

Parameters

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.

Description

The DataAreaViewsDelete operation deletes regular report visualizer.

Comments

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.

Example

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.

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">
<DataAreaViewsDelete xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">S1!M!S!P1!DataArea!DataSources!1!DataSourceSlices!1!Views</mon>
<tArg xmlns="">
  <k>4</k>
  </tArg>
  </DataAreaViewsDelete>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"DataAreaViewsDelete" :
{
"mon" : "S1!M!S!P1!DataArea!DataSources!1!DataSourceSlices!1!Views",
"tArg" :
{
"k" : "4"
}
}
}

JSON response:

{
"DataAreaViewsDeleteResult" : "1"
}
public static bool DelView(string moniker, uint sourceKey, uint sliceKey, uint 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:

Working With Regular Reports