SetDashboardSlides

Syntax

bool SetDashboardSlides(string mon, DashboardSlides tArg)

Parameters

mon. Moniker for working with information panel slides.

tArg. Slide settings that should be applied.

Description

The SetDashboardSlides operation changes information panel slide settings.

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 slide settings that should be applied. The moniker can be obtained on executing the OpenDashboard operation.

The operation results in the logical True if the settings were changed successfully.

Example

Below is the example of changing information panel slide title. The request contains moniker for working with slides, slide key, text, and title settings. The response contains whether settings were changed 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">
<SetDashboardSlides xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">NPIEIDPOHJAFGOAELKELIPCKGACGDODEJKMKLMAKBEHEPNNL!M!S!PNNJOPHPOHJAFGOAEICILHADAKIJGHMLEMLEPKLENIMMHAMNE!Slides</mon>
<tArg xmlns="">
<its>
<it>
  <k>1</k>
  <title>Source data</title>
<gxTitle>
<font>
  <family>Arial</family>
<style>
  <it>Regular</it>
  </style>
<size>
  <width>0</width>
  <height>20</height>
  <units>Mm</units>
  </size>
  </font>
  <textColor>#0E50B0</textColor>
  <backgroundColor>#FFFFFF</backgroundColor>
  <textAlignment>Center</textAlignment>
  <verticalTextAlignment>Center</verticalTextAlignment>
  <visible>true</visible>
  </gxTitle>
  </it>
  </its>
  <activeIndex>2147483647</activeIndex>
  <canUsePublication>false</canUsePublication>
  </tArg>
  </SetDashboardSlides>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"SetDashboardSlides" :
{
"mon" : "NPIEIDPOHJAFGOAELKELIPCKGACGDODEJKMKLMAKBEHEPNNL!M!S!PNNJOPHPOHJAFGOAEICILHADAKIJGHMLEMLEPKLENIMMHAMNE!Slides",
"tArg" :
{
"its" :
{
"it" :
[
{
"k" : "1",
"title" : "Source data",
"gxTitle" :
{
"font" :
{
"family" : "Arial",
"style" :
{
"it" : "Regular"
},
"size" :
{
"width" : "0",
"height" : "20",
"units" : "Mm"
}
},
"textColor" : "#0E50B0",
"backgroundColor" : "#FFFFFF",
"textAlignment" : "Center",
"verticalTextAlignment" : "Center",
"visible" : "true"
}
}
]
},
"activeIndex" : "2147483647",
"canUsePublication" : "false"
}
}
}

JSON response:

{
"SetDashboardSlidesResult" : "1"
}
public static bool SetDashboardSlides(string moniker, uint slideKey)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tSet = new SetDashboardSlides()
{
tArg = new DashboardSlides()
{
activeIndex = int.MaxValue,
canUsePublication = new bool(),
its = new DashboardSlide[]
{
new DashboardSlide()
{
k = slideKey,
title = "Source data",
gxTitle = new GxTitle()
{
backgroundColor = "#FFFFFF",
font = new GxFont()
{
family = "Arial",
size = new SizeU() { height = 20 },
style = new GxFontStylePart[] { GxFontStylePart.Regular }
},
textAlignment = GxStringAlignment.Center,
verticalTextAlignment = GxVerticalAlignment.Center,
textColor = "#0E50B0",
visible = true
}
}
}
},
// Moniker for working with information panel slides
mon = moniker + "!Slides"
};
// Change slide settings
var result = somClient.SetDashboardSlides(tSet);
return result;
}

See also:

Working with Information Panels