bool DashboardSourcesRemove(string mon, ItKey tArg)
mon. Moniker for working with information panel data sources.
tArg. Key of removed information panel data source.
The DashboardSourcesRemove operation removes information panel data source.
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.
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.
{
"DashboardSourcesRemove" :
{
"mon" : "NGDHDGCPEHADGOAENOBLDBIDDCDEGILEPLMLPCIIGMNMBLKH!M!S!PLHPAOLCPEHADGOAEAHKONCEDOLHDDIAEGIKMEIJNDDGMDEOI!Sources",
"tArg" :
{
"k" : "2"
}
}
}
{
"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: