DashboardVisualizer DashboardVisualizerCopy(string mon, DashboardVisualizer tArg)
mon. Moniker for working with information panel visualizers.
tArg. Copied visualizer.
The DashboardVisualizerCopy operation creates a specified visualizer copy.
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.
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.
{
"DashboardVisualizerCopy" :
{
"mon" : "NGDHDGCPEHADGOAENOBLDBIDDCDEGILEPLMLPCIIGMNMBLKH!M!S!PLHPAOLCPEHADGOAEAHKONCEDOLHDDIAEGIKMEIJNDDGMDEOI!Visualizers!3",
"tArg" :
{
"k" : "3",
"metaModelKey" : "3"
}
}
}
{
"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: