SetDashboardVisualizers

Syntax

bool SetDashboardVisualizers(string mon, DashboardVisualizers tArg)

Parameters

mon. Moniker for working with information panel visualizers.

tArg. Operation execution parameters.

Description

The SetDashboardVisualizers operation changes settings of visualizers created in information panel.

Comments

To execute the operation, in the mon field moniker of opened information panel instance with the !Visualizers postfix, and in the tArg.its field specify updated visualizer 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 visualizer settings. The request contains moniker for working with visualizers and updated visualizer 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">
<SetDashboardVisualizers xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">NGDHDGCPEHADGOAENOBLDBIDDCDEGILEPLMLPCIIGMNMBLKH!M!S!PLHPAOLCPEHADGOAEAHKONCEDOLHDDIAEGIKMEIJNDDGMDEOI!Visualizers</mon>
<tArg xmlns="">
<its>
<it>
  <k>1</k>
  <n />
  <x>630</x>
  <y>101</y>
  <height>423</height>
  <width>714</width>
  <metaModelKey>1</metaModelKey>
  <type>Grid</type>
  <chartType>Bars</chartType>
  <parentKey>0</parentKey>
  <title>Calculated data</title>
  <useSync>false</useSync>
  <useSelectionSync>false</useSelectionSync>
<syncGroups>
<its>
<it>
  <k>-1</k>
  <dimKeys />
  </it>
  </its>
  </syncGroups>
  <settings>{"exportLayout":"Landscape","exportFileFormat":"pdf"}</settings>
  </it>
  </its>
  </tArg>
  </SetDashboardVisualizers>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"SetDashboardVisualizers" :
{
"mon" : "NGDHDGCPEHADGOAENOBLDBIDDCDEGILEPLMLPCIIGMNMBLKH!M!S!PLHPAOLCPEHADGOAEAHKONCEDOLHDDIAEGIKMEIJNDDGMDEOI!Visualizers",
"tArg" :
{
"its" :
{
"it" :
[
{
"k" : "1",
"n" : "",
"x" : "630",
"y" : "101",
"height" : "423",
"width" : "714",
"metaModelKey" : "1",
"type" : "Grid",
"chartType" : "Bars",
"parentKey" : "0",
"title" : "Calculated data",
"useSync" : "false",
"useSelectionSync" : "false",
"syncGroups" :
{
"its" :
{
"it" :
[
{
"k" : "-1",
"dimKeys" : ""
}
]
}
},
"settings" : "{"exportLayout":"Landscape","exportFileFormat":"pdf"}"
}
]
}
}
}
}

JSON response:

{
"SetDashboardVisualizersResult" : "1"
}
public static bool SetDashboardVisualizers(string moniker, DashboardVisualizer visualizer)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tSet = new SetDashboardVisualizers()
{
tArg = new DashboardVisualizers()
{
its = new DashboardVisualizer[]
{
visualizer
}
},
// Moniker for working with information panel visualizers
mon = moniker + "!Visualizers"
};
// Change information about information panel visualizers
var result = somClient.SetDashboardVisualizers(tSet);
return result;
}

See also:

Working with Information Panel