DashboardVisualizerCopy

Syntax

DashboardVisualizer DashboardVisualizerCopy(string mon, DashboardVisualizer tArg)

Parameters

mon. Moniker for working with information panel visualizers.

tArg. Copied visualizer.

Description

The DashboardVisualizerCopy operation creates a specified visualizer copy.

Comments

To execute the operation, in the mon field specify moniker of opened information panel instance with the !Visualizers!visualizer key postfix, and in the tArg field specify copied visualizer. The moniker can be obtained on executing the OpenDashboard operation. The list of visualizers is returned by the GetDashboardVisualizers operation.

The operation results in the information about created visualizer copy.

Example

Below is the example of visualizer copying. The request contains moniker with visualizer key and settings of copied visualizer. The response contains information about created copy.

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">
<DashboardVisualizerCopy xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">NGDHDGCPEHADGOAENOBLDBIDDCDEGILEPLMLPCIIGMNMBLKH!M!S!PLHPAOLCPEHADGOAEAHKONCEDOLHDDIAEGIKMEIJNDDGMDEOI!Visualizers!3</mon>
<tArg xmlns="">
  <k>3</k>
  <metaModelKey>3</metaModelKey>
  </tArg>
  </DashboardVisualizerCopy>
  </s:Body>
  </s:Envelope>

SOAP response:

<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="">4</k>
  <x xmlns="">0</x>
  <y xmlns="">0</y>
  <height xmlns="">200</height>
  <width xmlns="">400</width>
  <metaModelKey xmlns="">4</metaModelKey>
  <type xmlns="">Chart</type>
  <chartType xmlns="">Lines</chartType>
  <externalType xmlns="" />
  <parentKey xmlns="">0</parentKey>
  <title xmlns="" />
  <useSync xmlns="">0</useSync>
  <useSelectionSync xmlns="">0</useSelectionSync>
  <gxTitle xmlns="" />
  <esa xmlns="">0</esa>
  </DashboardVisualizerCopyResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"DashboardVisualizerCopy" :
{
"mon" : "NGDHDGCPEHADGOAENOBLDBIDDCDEGILEPLMLPCIIGMNMBLKH!M!S!PLHPAOLCPEHADGOAEAHKONCEDOLHDDIAEGIKMEIJNDDGMDEOI!Visualizers!3",
"tArg" :
{
"k" : "3",
"metaModelKey" : "3"
}
}
}

JSON response:

{
"DashboardVisualizerCopyResult" :
{
"k" : "4",
"x" : "0",
"y" : "0",
"height" : "200",
"width" : "400",
"metaModelKey" : "4",
"type" : "Chart",
"chartType" : "Lines",
"externalType" : "",
"parentKey" : "0",
"title" : "",
"useSync" : "0",
"useSelectionSync" : "0",
"gxTitle" : "",
"esa" : "0"
}
}
public static DashboardVisualizer DashboardVisualizerCopy(string moniker, DashboardVisualizer copiedVis)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tExp = new DashboardVisualizerCopy()
{
tArg = copiedVis,
// Moniker for working with information panel visualizers
mon = moniker + "!Visualizers!" + copiedVis.k
};
// Copy visualizer
var result = somClient.DashboardVisualizerCopy(tExp);
return result;
}

See also:

Working with Information Panel