DashboardSourcesRemove

Syntax

bool DashboardSourcesRemove(string mon, ItKey tArg)

Parameters

mon. Moniker for working with information panel data sources.

tArg. Key of removed information panel data source.

Description

The DashboardSourcesRemove operation removes information panel data source.

Comments

To execute the operation, in the mon field specify moniker of information panel instance with the !Sources postfix, and in the tArg field specify key of removed information panel data source. The moniker can be obtained on executing the OpenDashboard operation. The required data source key can be obtained by requesting information about sources using the GetDashboardMeta operation.

The operation result determines whether data source is removed successfully.

Example

Below is the example of removing data source from information panel. The request contains moniker for working with data sources and key of deleted data source. The response contains whether data source was removed 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">
<DashboardSourcesRemove xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">NGDHDGCPEHADGOAENOBLDBIDDCDEGILEPLMLPCIIGMNMBLKH!M!S!PLHPAOLCPEHADGOAEAHKONCEDOLHDDIAEGIKMEIJNDDGMDEOI!Sources</mon>
<tArg xmlns="">
  <k>2</k>
  </tArg>
  </DashboardSourcesRemove>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"DashboardSourcesRemove" :
{
"mon" : "NGDHDGCPEHADGOAENOBLDBIDDCDEGILEPLMLPCIIGMNMBLKH!M!S!PLHPAOLCPEHADGOAEAHKONCEDOLHDDIAEGIKMEIJNDDGMDEOI!Sources",
"tArg" :
{
"k" : "2"
}
}
}

JSON response:

{
"DashboardSourcesRemoveResult" : "1"
}
public static bool DashboardSourcesRemove(string moniker, uint sourceKey)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tDel = new DashboardSourcesRemove()
{
tArg = new ItKey()
{
k = sourceKey
},
// Moniker for working with information panel data sources
mon = moniker + "!Sources"
};
// Remove data source
var result = somClient.DashboardSourcesRemove(tDel);
return result;
}

See also:

Working with Information Panel