GetDashboardTabsView

Синтаксис

DashboardTabsView GetDashboardTabsView(string mon, DashboardTabsView tArg)

Параметры

mon. Моникёр визуализатора Вкладка

tArg. Получаемые настройки визуализатора.

Описание

Операция GetDashboardTabsView получает настройки визуализатора Вкладка.

Комментарии

Для выполнения операции укажите в поле mon моникёр экземпляра информационной панели с постфиксом «!Slides!ключ слайда!Visualizers!ключ визуализатора», а в поле tArg пустые значения или значения по умолчанию для тех полей, значения которых необходимо получить. Для коллекций укажите один элемент. Моникёр может быть получен при выполнении операции OpenDashboard.

Результатом операции будут полученные настройки визуализатора.

Пример

Ниже приведён пример получения настроек визуализатора Вкладка, расположенного на слайде информационной панели. В запросе передаётся моникёр визуализатора и список настроек, значения которых необходимо получить. В ответе возвращаются полученные значения настроек.

SOAP-запрос:

<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">
<GetDashboardTabsView xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">GGIGICGOPECJGOAEAIBGPJNEPOKCOGPEELFEBGLDHCCOCDIH!M!S!PEAPAEDGOPECJGOAEEFICOIHFBEKAJCBELLJFDDMIKPHHNHOE!Slides!1!Visualizers!1</mon>
<tArg xmlns="">
<tabs>
<its>
<it>
  <k>-1</k>
  <n />
  <backgroundColor />
  <tabBackgroundColor />
<font>
  <family />
<style>
  <it>Regular</it>
  </style>
<size>
  <width>-1</width>
  <height>-1</height>
  <units>Pt</units>
  </size>
  </font>
  <fontColor />
  </it>
  </its>
  <activeIndex>0</activeIndex>
  </tabs>
<font>
  <family />
<style>
  <it>Regular</it>
  </style>
<size>
  <width>-1</width>
  <height>-1</height>
  <units>Pt</units>
  </size>
  </font>
  <backgroundColor />
  <tabBackgroundColor />
  <fontColor />
  </tArg>
  </GetDashboardTabsView>
  </s:Body>
  </s:Envelope>

SOAP-ответ:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetDashboardTabsViewResult 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">
<tabs xmlns="">
<its>
<it>
  <k>1</k>
  <n>Вкладка 1</n>
  <backgroundColor>{}</backgroundColor>
  <tabBackgroundColor>{}</tabBackgroundColor>
<font>
  <family>Microsoft Sans Serif</family>
<style>
  <it>Regular</it>
  </style>
<size>
  <width>-1</width>
  <height>14</height>
  <units>Pt</units>
  </size>
  </font>
  <fontColor>#48494C</fontColor>
  </it>
  </its>
  <activeIndex>0</activeIndex>
  </tabs>
<font xmlns="">
  <family>Microsoft Sans Serif</family>
<style>
  <it>Regular</it>
  </style>
<size>
  <width>-1</width>
  <height>14</height>
  <units>Pt</units>
  </size>
  </font>
  <backgroundColor xmlns="" />
  <tabBackgroundColor xmlns="" />
  <fontColor xmlns="">#48494C</fontColor>
  </GetDashboardTabsViewResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON-запрос:

{
"GetDashboardTabsView": {
"mon": "GGIGICGOPECJGOAEAIBGPJNEPOKCOGPEELFEBGLDHCCOCDIH!M!S!PEAPAEDGOPECJGOAEEFICOIHFBEKAJCBELLJFDDMIKPHHNHOE!Slides!1!Visualizers!1",
"tArg": {
"tabs": {
"its": {
"it": {
"k": "-1",
"n": "",
"backgroundColor": "",
"tabBackgroundColor": "",
"font": {
"family": "",
"style": {
"it": "Regular"
},
"size": {
"width": "-1",
"height": "-1",
"units": "Pt"
}
},
"fontColor": ""
}
},
"activeIndex": "0"
},
"font": {
"family": "",
"style": {
"it": "Regular"
},
"size": {
"width": "-1",
"height": "-1",
"units": "Pt"
}
},
"backgroundColor": "",
"tabBackgroundColor": "",
"fontColor": ""
}
}
}

JSON-ответ:

{
"GetDashboardTabsViewResult": {
"tabs": {
"its": {
"it": {
"k": "1",
"n": "Вкладка 1",
"backgroundColor": "{}",
"tabBackgroundColor": "{}",
"font": {
"family": "Microsoft Sans Serif",
"style": {
"it": "Regular"
},
"size": {
"width": "-1",
"height": "14",
"units": "Pt"
}
},
"fontColor": "#48494C"
}
},
"activeIndex": "0"
},
"font": {
"family": "Microsoft Sans Serif",
"style": {
"it": "Regular"
},
"size": {
"width": "-1",
"height": "14",
"units": "Pt"
}
},
"backgroundColor": "",
"tabBackgroundColor": "",
"fontColor": "#48494C"
}
}
public static DashboardTabsView GetDashboardTabsView(string moniker, uint slideKey, uint visKey)
{
var somClient = new SomPortTypeClient(); // Прокси-объект для выполнения операций
// Параметры выполнения операции
var tGet = new GetDashboardTabsView()
{
tArg = new DashboardTabsView()
{
backgroundColor = string.Empty,
font = new GxFont()
{
family = string.Empty,
size = new SizeUF()
{
height = -1,
width = -1,
units = SizeUnits.Pt
},
style = new GxFontStylePart[1]
{
GxFontStylePart.Regular
}
},
fontColor = string.Empty,
tabBackgroundColor = string.Empty,
tabs = new DashboardTabs()
{
activeIndex = 0,
its = new DashboardTab[1]
{
new DashboardTab()
{
backgroundColor = string.Empty,
font = new GxFont()
{
family = string.Empty,
size = new SizeUF()
{
height = -1,
width = -1,
units = SizeUnits.Pt
},
style = new GxFontStylePart[1]
{
GxFontStylePart.Regular
}
},
fontColor = string.Empty,
k = uint.MaxValue,
n = string.Empty,
tabBackgroundColor = string.Empty
}
}
}
},
mon = moniker + "!Slides!" + slideKey + "!Visualizers!" + visKey
};
// Получение настроек визуализатора Вкладка
var result = somClient.GetDashboardTabsView(tGet);
return result;
}

См. также:

Работа с информационными панелями