bool SetDashboardSlides(string mon, DashboardSlides tArg)
mon. Moniker for working with information panel slides.
tArg. Slide settings that should be applied.
The SetDashboardSlides operation changes information panel slide settings.
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.
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.
{
"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"
}
}
}
{
"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: