bool SetDashboardVisualizers(string mon, DashboardVisualizers tArg)
mon. Moniker for working with information panel visualizers.
tArg. Operation execution parameters.
The SetDashboardVisualizers operation changes settings of visualizers created in information panel.
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.
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.
{
"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"}"
}
]
}
}
}
}
{
"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: