DashboardSlidesDelete

Syntax

bool DashboardSlidesDelete(string mon, DashboardSlide tArg)

Parameters

mon. Moniker for working with information panel slides.

tArg. Operation execution parameters.

Description

The DashboardSlidesDelete operation deletes information panel slide.

Comments

To execute the operation, in the mon field specify moniker of opened information panel instance with the !Slides postfix, and in the tArg.k field specify the key of deleted slide. The moniker can be obtained on executing the OpenDashboard operation.

The operation results in the logical true if the slide was deleted successfully.

Example

Below is the example of deleting information panel slide. The request contains moniker for working with slides and the key of deleted slide. The response contains whether the slide was 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">
<DashboardSlidesDelete xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">NPIEIDPOHJAFGOAELKELIPCKGACGDODEJKMKLMAKBEHEPNNL!M!S!PNNJOPHPOHJAFGOAEICILHADAKIJGHMLEMLEPKLENIMMHAMNE!Slides</mon>
<tArg xmlns="">
  <k>3</k>
  </tArg>
  </DashboardSlidesDelete>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"DashboardSlidesDelete" :
{
"mon" : "NPIEIDPOHJAFGOAELKELIPCKGACGDODEJKMKLMAKBEHEPNNL!M!S!PNNJOPHPOHJAFGOAEICILHADAKIJGHMLEMLEPKLENIMMHAMNE!Slides",
"tArg" :
{
"k" : "3"
}
}
}

JSON response:

{
"DashboardSlidesDeleteResult" : "1"
}
public static bool DashboardSlidesDelete(string moniker, uint slideKey)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tDel = new DashboardSlidesDelete()
{
tArg = new DashboardSlide()
{
k = slideKey
},
// Moniker for working with information panel slides
mon = moniker + "!Slides"
};
// Delete slide
var result = somClient.DashboardSlidesDelete(tDel);
return result;
}

See also:

Working with Information Panels