DashboardVisualizerCopy

Синтаксис

DashboardVisualizer DashboardVisualizerCopy(string mon, DashboardVisualizerCopyArg tArg)

Параметры

mon. Моникёр копируемого визуализатора.

tArg. Параметры выполнения операции.

Описание

Операция DashboardVisualizerCopy создаёт копию заданного визуализатора.

Комментарии

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

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

Пример

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

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">
<DashboardVisualizerCopy xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">DKJDEBCPOCCJGOAEHGGGBDOPNKOCGHFEOIDNHJBDIJEOHHNA!M!S!PANBIACCPOCCJGOAEFFDCCKALAHDOOCPEDLPPAKBCCFDJFBHH!Visualizers!1</mon>
<tArg xmlns="">
  <toCollection>DKJDEBCPOCCJGOAEHGGGBDOPNKOCGHFEOIDNHJBDIJEOHHNA!M!S!PANBIACCPOCCJGOAEFFDCCKALAHDOOCPEDLPPAKBCCFDJFBHH!Slides!1!Visualizers</toCollection>
<visualizer>
  <k>1</k>
  <id />
  <settings>{"blockSettings":{"fill":{"colors":[{"hex":"#ffffff","rgb":{"red":255,"green":255,"blue":255},"rgba":"rgba(255, 255, 255, 1)","opacity":1}],"value":"rgba(255, 255, 255, 1)"},"border":{"style":0,"color":"#000000","width":0},"roundingCorners":4,"shadow":true,"paddings":{"top":0,"bottom":0,"left":0,"right":0},"margins":{"top":0,"bottom":0,"left":0,"right":0}},"headerBottomIndent":10}</settings>
  <isSendReceiveSelection>false</isSendReceiveSelection>
  <x>4</x>
  <y>4</y>
  <height>4</height>
  <width>4</width>
  <sendSelectionSync>true</sendSelectionSync>
  <receiveSelectionSync>true</receiveSelectionSync>
  </visualizer>
  </tArg>
  </DashboardVisualizerCopy>
  </s:Body>
  </s:Envelope>

SOAP-ответ:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<DashboardVisualizerCopyResult 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="">2</k>
  <id xmlns="">ITEM1</id>
  <title xmlns="">Линейная диаграмма 2</title>
<gxTitle xmlns="">
  <text>Линейная диаграмма 1</text>
  <title>Линейная диаграмма 1</title>
<font>
  <family>Roboto</family>
<style>
  <it>Regular</it>
  </style>
<size>
  <width>-1</width>
  <height>16</height>
  <units>Pt</units>
  </size>
  </font>
  <textColor>#54575B</textColor>
  <backgroundColor>#FFFFFF</backgroundColor>
  <textAlignment>Center</textAlignment>
  <verticalTextAlignment>Center</verticalTextAlignment>
<size>
  <width>-1</width>
  <height>8000</height>
  <units>Mkm</units>
  </size>
  <visible>0</visible>
  <htmlText><span style="font-weight: normal;font-size: 16pt;color: #54575b;background-color: #ffffff;text-align: center;font-family: Roboto; "><span style="color: #54575b;text-align: center;background-color: #ffffff;font-size: 16pt;font-weight: normal;font-family: Roboto; ">Линейная диаграмма 1</span></span></htmlText>
  <htmlTitle><span style="font-weight: normal;font-size: 16pt;color: #54575b;background-color: #ffffff;text-align: center;font-family: Roboto; "><span style="color: #54575b;text-align: center;background-color: #ffffff;font-size: 16pt;font-weight: normal;font-family: Roboto; ">Линейная диаграмма 1</span></span></htmlTitle>
  <isControl>1</isControl>
  <autoHeight>0</autoHeight>
  <customFormat F="" FT="0" />
  </gxTitle>
  <settings xmlns="">{"blockSettings":{"fill":{"colors":[{"hex":"#ffffff","rgb":{"red":255,"green":255,"blue":255},"rgba":"rgba(255, 255, 255, 1)","opacity":1}],"value":"rgba(255, 255, 255, 1)"},"border":{"style":0,"color":"#000000","width":0},"roundingCorners":4,"shadow":true,"paddings":{"top":0,"bottom":0,"left":0,"right":0},"margins":{"top":0,"bottom":0,"left":0,"right":0}},"headerBottomIndent":10}</settings>
  <publicated xmlns="">0</publicated>
  <publicationSettings xmlns="" />
  <isSendReceiveSelection xmlns="">0</isSendReceiveSelection>
  <x xmlns="">4</x>
  <y xmlns="">4</y>
  <height xmlns="">4</height>
  <width xmlns="">4</width>
  <metaModelKey xmlns="">2</metaModelKey>
  <type xmlns="">Chart</type>
  <chartType xmlns="">Lines</chartType>
  <externalType xmlns="" />
  <parentKey xmlns="">1</parentKey>
  <sendSelectionSync xmlns="">1</sendSelectionSync>
  <receiveSelectionSync xmlns="">1</receiveSelectionSync>
<subTitle xmlns="">
  <text>&[Selection]</text>
<font>
  <family>Roboto</family>
<style>
  <it>Regular</it>
  </style>
<size>
  <width>-1</width>
  <height>14</height>
  <units>Pt</units>
  </size>
  </font>
  <textColor>#54575B</textColor>
  <backgroundColor>#FFFFFF</backgroundColor>
  <textAlignment>Center</textAlignment>
  <verticalTextAlignment>Center</verticalTextAlignment>
<size>
  <width>-1</width>
  <height>5000000</height>
  <units>Mkm</units>
  </size>
  <visible>0</visible>
  <htmlText><span style="font-weight: normal;font-size: 14pt;color: #54575b;background-color: #ffffff;text-align: center;font-family: Roboto; "><span style="color: #54575b;text-align: center;background-color: #ffffff;font-size: 14pt;font-weight: normal;font-family: Roboto; ">&amp;[Selection]</span></span></htmlText>
  <htmlTitle><span style="font-weight: normal;font-size: 14pt;color: #54575b;background-color: #ffffff;text-align: center;font-family: Roboto; "><span style="color: #54575b;text-align: center;background-color: #ffffff;font-size: 14pt;font-weight: normal;font-family: Roboto; "></span></span></htmlTitle>
  <isControl>1</isControl>
  <autoHeight>0</autoHeight>
  <customFormat F="" FT="0" />
  <shortTextSelection>1</shortTextSelection>
  </subTitle>
  <changeCounter xmlns="">9</changeCounter>
  </DashboardVisualizerCopyResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON-запрос:

{
"DashboardVisualizerCopy": {
"mon": "DKJDEBCPOCCJGOAEHGGGBDOPNKOCGHFEOIDNHJBDIJEOHHNA!M!S!PANBIACCPOCCJGOAEFFDCCKALAHDOOCPEDLPPAKBCCFDJFBHH!Visualizers!1",
"tArg": {
"toCollection": "DKJDEBCPOCCJGOAEHGGGBDOPNKOCGHFEOIDNHJBDIJEOHHNA!M!S!PANBIACCPOCCJGOAEFFDCCKALAHDOOCPEDLPPAKBCCFDJFBHH!Slides!1!Visualizers",
"visualizer": {
"k": "1",
"id": "",
"settings": "{\"blockSettings\":{\"fill\":{\"colors\":[{\"hex\":\"#ffffff\",\"rgb\":{\"red\":255,\"green\":255,\"blue\":255},\"rgba\":\"rgba(255, 255, 255, 1)\",\"opacity\":1}],\"value\":\"rgba(255, 255, 255, 1)\"},\"border\":{\"style\":0,\"color\":\"#000000\",\"width\":0},\"roundingCorners\":4,\"shadow\":true,\"paddings\":{\"top\":0,\"bottom\":0,\"left\":0,\"right\":0},\"margins\":{\"top\":0,\"bottom\":0,\"left\":0,\"right\":0}},\"headerBottomIndent\":10}",
"isSendReceiveSelection": "false",
"x": "4",
"y": "4",
"height": "4",
"width": "4",
"sendSelectionSync": "true",
"receiveSelectionSync": "true"
}
}
}
}

JSON-ответ:

{
"DashboardVisualizerCopyResult": {
"k": "2",
"id": "ITEM1",
"title": "Линейная диаграмма 2",
"gxTitle": {
"text": "Линейная диаграмма 1",
"title": "Линейная диаграмма 1",
"font": {
"family": "Roboto",
"style": {
"it": "Regular"
},
"size": {
"width": "-1",
"height": "16",
"units": "Pt"
}
},
"textColor": "#54575B",
"backgroundColor": "#FFFFFF",
"textAlignment": "Center",
"verticalTextAlignment": "Center",
"size": {
"width": "-1",
"height": "8000",
"units": "Mkm"
},
"visible": "0",
"htmlText": "<span style=\"font-weight: normal;font-size: 16pt;color: #54575b;background-color: #ffffff;text-align: center;font-family: Roboto; \"><span style=\"color: #54575b;text-align: center;background-color: #ffffff;font-size: 16pt;font-weight: normal;font-family: Roboto; \">Линейная диаграмма 1</span></span>",
"htmlTitle": "<span style=\"font-weight: normal;font-size: 16pt;color: #54575b;background-color: #ffffff;text-align: center;font-family: Roboto; \"><span style=\"color: #54575b;text-align: center;background-color: #ffffff;font-size: 16pt;font-weight: normal;font-family: Roboto; \">Линейная диаграмма 1</span></span>",
"isControl": "1",
"autoHeight": "0",
"customFormat": {
"@F": "",
"@FT": "0"
}
},
"settings": "{\"blockSettings\":{\"fill\":{\"colors\":[{\"hex\":\"#ffffff\",\"rgb\":{\"red\":255,\"green\":255,\"blue\":255},\"rgba\":\"rgba(255, 255, 255, 1)\",\"opacity\":1}],\"value\":\"rgba(255, 255, 255, 1)\"},\"border\":{\"style\":0,\"color\":\"#000000\",\"width\":0},\"roundingCorners\":4,\"shadow\":true,\"paddings\":{\"top\":0,\"bottom\":0,\"left\":0,\"right\":0},\"margins\":{\"top\":0,\"bottom\":0,\"left\":0,\"right\":0}},\"headerBottomIndent\":10}",
"publicated": "0",
"publicationSettings": "",
"isSendReceiveSelection": "0",
"x": "4",
"y": "4",
"height": "4",
"width": "4",
"metaModelKey": "2",
"type": "Chart",
"chartType": "Lines",
"externalType": "",
"parentKey": "1",
"sendSelectionSync": "1",
"receiveSelectionSync": "1",
"subTitle": {
"text": "&[Selection]",
"font": {
"family": "Roboto",
"style": {
"it": "Regular"
},
"size": {
"width": "-1",
"height": "14",
"units": "Pt"
}
},
"textColor": "#54575B",
"backgroundColor": "#FFFFFF",
"textAlignment": "Center",
"verticalTextAlignment": "Center",
"size": {
"width": "-1",
"height": "5000000",
"units": "Mkm"
},
"visible": "0",
"htmlText": "<span style=\"font-weight: normal;font-size: 14pt;color: #54575b;background-color: #ffffff;text-align: center;font-family: Roboto; \"><span style=\"color: #54575b;text-align: center;background-color: #ffffff;font-size: 14pt;font-weight: normal;font-family: Roboto; \">&[Selection]</span></span>",
"htmlTitle": "<span style=\"font-weight: normal;font-size: 14pt;color: #54575b;background-color: #ffffff;text-align: center;font-family: Roboto; \"><span style=\"color: #54575b;text-align: center;background-color: #ffffff;font-size: 14pt;font-weight: normal;font-family: Roboto; \"></span></span>",
"isControl": "1",
"autoHeight": "0",
"customFormat": {
"@F": "",
"@FT": "0"
},
"shortTextSelection": "1"
},
"changeCounter": "9"
}
}
public static DashboardVisualizer DashboardVisualizerCopy(string moniker, string visCoolectionMoniker, DashboardVisualizer copiedInfo)
{
var somClient = new SomPortTypeClient(); // Прокси-объект для выполнения операций
// Параметры выполнения операции
var tCopy = new DashboardVisualizerCopy()
{
tArg = new DashboardVisualizerCopyArg()
{
toCollection = visCoolectionMoniker,
visualizer = copiedInfo
},
// Моникёр копируемого визуализатора
mon = moniker + "!Visualizers!" + copiedInfo.k
};
// Копирование визуализатора
var result = somClient.DashboardVisualizerCopy(tCopy);
return result;
}

См. также:

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