DashboardVisualizers GetDashboardVisualizers(string mon, DashboardVisualizers tArg)
mon. Moniker for working with information panel visualizers.
tArg. Operation execution parameters.
The GetDashboardVisualizers operation gets information about visualizers created in information panel.
To execute the operation, in the mon field specify moniker of opened information panel instance with the !Visualizers postfix, and in the tArg.its field specify empty values or default values for the fields, which values should be obtained. The moniker can be obtained on executing the OpenDashboard operation.
The operation results in the obtained information about information panel visualizers.
Below is the example of getting a list of information panel visualizers. The request contains moniker for working with visualizers and a list of obtained visualizer settings. The response contains the obtained information.
{
"GetDashboardVisualizers" :
{
"mon" : "NGDHDGCPEHADGOAENOBLDBIDDCDEGILEPLMLPCIIGMNMBLKH!M!S!PLHPAOLCPEHADGOAEAHKONCEDOLHDDIAEGIKMEIJNDDGMDEOI!Visualizers",
"tArg" :
{
"its" :
{
"it" :
[
{
"k" : "-1",
"n" : "",
"x" : "2147483647",
"y" : "2147483647",
"height" : "-1",
"width" : "-1",
"metaModelKey" : "-1",
"type" : "Chart",
"chartType" : "Areas",
"parentKey" : "-1",
"title" : "",
"useSync" : "false",
"useSelectionSync" : "false",
"syncGroups" :
{
"its" :
{
"it" :
[
{
"k" : "-1",
"dimKeys" : ""
}
]
}
},
"settings" : ""
}
]
}
}
}
}
{
"GetDashboardVisualizersResult" :
{
"its" :
{
"it" :
[
{
"k" : "1",
"n" : "",
"x" : "630",
"y" : "101",
"height" : "423",
"width" : "714",
"metaModelKey" : "1",
"type" : "Grid",
"chartType" : "Bars",
"parentKey" : "0",
"title" : "Table title",
"useSync" : "0",
"useSelectionSync" : "0",
"syncGroups" :
{
"its" :
{
"it" :
[
{
"k" : "4294967295",
"dimKeys" : ""
}
]
}
},
"settings" : "{"exportLayout":"Landscape","exportFileFormat":"pdf"}"
},
{
"k" : "2",
"n" : "",
"x" : "641",
"y" : "537",
"height" : "560",
"width" : "640",
"metaModelKey" : "2",
"type" : "Chart",
"chartType" : "Petals",
"parentKey" : "0",
"title" : "",
"useSync" : "0",
"useSelectionSync" : "0",
"syncGroups" :
{
"its" :
{
"it" :
[
{
"k" : "4294967295",
"dimKeys" : ""
}
]
}
},
"settings" : "{"exportLayout":"Landscape","exportFileFormat":"pdf"}"
}
]
}
}
}
public static DashboardVisualizers GetDashboardVisualizers(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetDashboardVisualizers()
{
tArg = new DashboardVisualizers()
{
its = new DashboardVisualizer[]
{
new DashboardVisualizer()
{
k = uint.MaxValue,
n = string.Empty,
type = SomDashboardVisualizerType.Chart,
chartType = SomDashboardChartType.Areas,
x = int.MaxValue,
y = int.MaxValue,
height = uint.MaxValue,
width = uint.MaxValue,
settings = string.Empty,
metaModelKey = uint.MaxValue,
parentKey = uint.MaxValue,
useSync = new bool(),
useSelectionSync = new bool(),
title = string.Empty,
syncGroups = new DataAreaSyncGroups()
{
its = new DataAreaSyncGroup[]
{
new DataAreaSyncGroup()
{
k = uint.MaxValue,
dimKeys = new uint[0]
}
}
}
}
}
},
// Moniker for working with information panel visualizers
mon = moniker + "!Visualizers"
};
// Get information about information panel visualizers
var result = somClient.GetDashboardVisualizers(tGet);
return result;
}
See also: