DashboardSlide DashboardSlidesAdd(string mon, DashboardSlide tArg)
mon. Moniker for working with information panel slides.
tArg. New slide settings.
The DashboardSlidesAdd operation creates a new slide.
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.
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.
{
"DashboardSlidesAdd" :
{
"mon" : "NPIEIDPOHJAFGOAELKELIPCKGACGDODEJKMKLMAKBEHEPNNL!M!S!PNNJOPHPOHJAFGOAEICILHADAKIJGHMLEMLEPKLENIMMHAMNE!Slides",
"tArg" :
{
"k" : "-1",
"name" : "New slide",
"visible" : "true"
}
}
}
{
"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: