Result GetDashboardControls(string mon, DashboardControls arg)
mon. Moniker for working with information panel controls.
arg. Parameters for getting information about controls.
The GetDashboardControls operation gets the list of controls created in information panel.
To execute the operation, in the mon field specify moniker of opened information panel instance with the !Controls postfix.
The moniker can be obtained on executing the OpenDashboard operation. In the arg.its field specify one collection element and set empty values or default values for the fields, which values should be obtained. Specify -1 as a key value.
The operation results in the requested settings of all information panel controls. To change the settings, use the SetDashboardControls operation.
Below is the example of getting control settings. The request contains moniker for working with controls. The response contains the obtained settings.
{
"GetDashboardControls" :
{
"mon" : "DDAHEFONHJEHGOAEEDLJNELPBEBAIMJEJILGKJKBBPLABDMK!M!S!PMAMCNGONHJEHGOAEGHJFDCONGPFPHECEDKMIJJCJCFJDMONM!Controls",
"arg" :
{
"its" :
{
"it" :
[
{
"k" : "-1",
"id" : "",
"title" : "",
"visualizerKey" : "-1",
"fieldKey" : "-1",
"binding" : "",
"slideKeys" :
{
"u" : "-1"
},
"reciveKeys" :
{
"u" : "-1"
}
}
]
}
}
}
}
{
"GetDashboardControlsResult" :
{
"its" :
{
"it" :
[
{
"k" : "1",
"id" : "ITEM",
"title" :
{
"text" : "Calendar",
"title" : "Calendar",
"font" :
{
"family" : "Microsoft Sans Serif",
"style" :
{
"it" : "Regular"
},
"size" :
{
"width" : "-1",
"height" : "14",
"units" : "Pt"
}
},
"textColor" : "#54575B",
"backgroundColor" : "#FFFFFF",
"textAlignment" : "Near",
"verticalTextAlignment" : "Center",
"size" :
{
"width" : "-1",
"height" : "8000",
"units" : "Mkm"
},
"visible" : "1",
"htmlText" : "<span style="font-weight: normal;font-size: 14pt;color: #54575b;background-color: #ffffff;text-align: left;font-family: 'Microsoft Sans Serif'; "><span style="color: #54575b;background-color: #ffffff;font-size: 14pt;font-weight: normal;font-family: 'Microsoft Sans Serif'; ">Calendar</span></span>",
"htmlTitle" : "<span style="font-weight: normal;font-size: 14pt;color: #54575b;background-color: #ffffff;text-align: left;font-family: 'Microsoft Sans Serif'; "><span style="color: #54575b;background-color: #ffffff;font-size: 14pt;font-weight: normal;font-family: 'Microsoft Sans Serif'; ">Calendar</span></span>",
"isControl" : "1",
"autoHeight" : "0",
"customFormat" :
{
"@F" : "",
"@FT" : "0"
}
},
"visualizerKey" : "1",
"fieldKey" : "1",
"binding" : "UI="DimCombo" ID="ITEM" SELECTIONMODE="MultiSelect" VALUE="DDAHEFONHJEHGOAEEDLJNELPBEBAIMJEJILGKJKBBPLABDMK!M!S!PMAMCNGONHJEHGOAEGHJFDCONGPFPHECEDKMIJJCJCFJDMONM!Controls!1!Selection"",
"slideKeys" :
{
"u" :
[
"1",
"2"
]
},
"reciveKeys" :
{
"u" : "2"
}
},
{
"k" : "2",
"id" : "ITEM1",
"title" :
{
"text" : "City",
"title" : "City",
"font" :
{
"family" : "Roboto",
"style" :
{
"it" : "Regular"
},
"size" :
{
"width" : "-1",
"height" : "14",
"units" : "Pt"
}
},
"textColor" : "#54575B",
"backgroundColor" : "#FFFFFF",
"textAlignment" : "Near",
"verticalTextAlignment" : "Center",
"size" :
{
"width" : "-1",
"height" : "8000",
"units" : "Mkm"
},
"visible" : "1",
"htmlText" : "<span style="font-weight: normal;font-size: 14pt;color: #54575b;background-color: #ffffff;text-align: left;font-family: Roboto; "><span style="color: #54575b;background-color: #ffffff;font-size: 14pt;font-weight: normal;font-family: Roboto; ">City</span></span>",
"htmlTitle" : "<span style="font-weight: normal;font-size: 14pt;color: #54575b;background-color: #ffffff;text-align: left;font-family: Roboto; "><span style="color: #54575b;background-color: #ffffff;font-size: 14pt;font-weight: normal;font-family: Roboto; ">City</span></span>",
"isControl" : "1",
"autoHeight" : "0",
"customFormat" :
{
"@F" : "",
"@FT" : "0"
}
},
"visualizerKey" : "1",
"fieldKey" : "2",
"binding" : "UI="DimCombo" ID="ITEM1" SELECTIONMODE="MultiSelect" VALUE="DDAHEFONHJEHGOAEEDLJNELPBEBAIMJEJILGKJKBBPLABDMK!M!S!PMAMCNGONHJEHGOAEGHJFDCONGPFPHECEDKMIJJCJCFJDMONM!Controls!2!Selection"",
"slideKeys" :
{
"u" : "1"
},
"reciveKeys" :
{
"u" : "2"
}
}
]
}
}
}
public static DashboardControls GetDashboardControls(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetDashboardControls()
{
arg = new DashboardControls()
{
its = new DashboardControl[]
{
new DashboardControl()
{
binding = string.Empty,
fieldKey = uint.MaxValue,
id = string.Empty,
k = uint.MaxValue,
reciveKeys = new uint[] { uint.MaxValue },
slideKeys = new uint[] { uint.MaxValue },
visualizerKey = uint.MaxValue,
title = new GxTitle()
}
}
},
mon = moniker + "!Controls"
};
// Get information about controls
var result = somClient.GetDashboardControls(tGet);
return result;
}
See also: