DataAreaSourcesDelete

Syntax

bool DataAreaSourcesDelete(string mon, OpItemKey tArg)

Parameters

mon. Moniker for working with data sources of regular report analytical data area.

tArg. Key of deleted data source.

Description

The DataAreaSourcesDelete operation deletes data source of analytical data area.

Comments

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.

Example

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.

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

SOAP response:

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

JSON request:

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

JSON response:

{
"DataAreaSourcesDeleteResult" : "1"
}
public static bool DelDataSource(string moniker, uint 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:

Working With Regular Reports