DashboardSlidesAdd

Syntax

DashboardSlide DashboardSlidesAdd(string mon, DashboardSlide tArg)

Parameters

mon. Moniker for working with information panel slides.

tArg. New slide settings.

Description

The DashboardSlidesAdd operation creates a new 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 field specify new slide settings. The moniker can be obtained on executing the OpenDashboard operation.

The operation results in the information about the created slide.

Example

Below is the example of creating a new slide in information panel. The request contains moniker for working with slides and new slide name. The response contains information about the created slide.

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">
<DashboardSlidesAdd xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">NPIEIDPOHJAFGOAELKELIPCKGACGDODEJKMKLMAKBEHEPNNL!M!S!PNNJOPHPOHJAFGOAEICILHADAKIJGHMLEMLEPKLENIMMHAMNE!Slides</mon>
<tArg xmlns="">
  <k>-1</k>
  <name>New slide</name>
  <visible>true</visible>
  </tArg>
  </DashboardSlidesAdd>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<DashboardSlidesAddResult 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">
  <k xmlns="">3</k>
  <title xmlns="">New slide</title>
  <useSync xmlns="">0</useSync>
  <useSelectionSync xmlns="">0</useSelectionSync>
  <name xmlns="">New slide</name>
  <visible xmlns="">1</visible>
  </DashboardSlidesAddResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"DashboardSlidesAdd" :
{
"mon" : "NPIEIDPOHJAFGOAELKELIPCKGACGDODEJKMKLMAKBEHEPNNL!M!S!PNNJOPHPOHJAFGOAEICILHADAKIJGHMLEMLEPKLENIMMHAMNE!Slides",
"tArg" :
{
"k" : "-1",
"name" : "New slide",
"visible" : "true"
}
}
}

JSON response:

{
"DashboardSlidesAddResult" :
{
"k" : "3",
"title" : "New slide",
"useSync" : "0",
"useSelectionSync" : "0",
"name" : "New slide",
"visible" : "1"
}
}
public static DashboardSlide DashboardSlidesAdd(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tAdd = new DashboardSlidesAdd()
{
tArg = new DashboardSlide()
{
k = uint.MaxValue,
name = "New slide",
visible = true
},
// Moniker for working with information panel slides
mon = moniker + "!Slides"
};
// Create slide
var result = somClient.DashboardSlidesAdd(tAdd);
return result;
}

See also:

Working with Information Panels