bool DashboardControlApplyAllDecor(string mon)
mon. Moniker for working with information panel control.
The DashboardControlApplyAllDecor operation applies formatting to all information panel controls.
To execute the operation, in the mon field specify moniker of opened information panel instance with the !Controls!Control key postfix. The moniker can be obtained on executing the OpenDashboard operation. Formatting of the control with the specified key will be applied to the rest of the controls.
The operation results in the logical true if the formatting is successfully applied.
Below is the example of applying formatting to controls. The request contains moniker of the control, which formatting will be used as basic for other controls. The response contains whether the formatting was applied successfully.
{
"DashboardControlApplyAllDecor" :
{
"mon" : "DDAHEFONHJEHGOAEEDLJNELPBEBAIMJEJILGKJKBBPLABDMK!M!S!PMAMCNGONHJEHGOAEGHJFDCONGPFPHECEDKMIJJCJCFJDMONM!Controls!1"
}
}
{
"DashboardControlApplyAllDecorResult" : "1"
}
public static bool DashboardControlApplyAllDecor(string moniker, uint controlKey)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tApply = new DashboardControlApplyAllDecor()
{
mon = moniker + "!Controls!" + controlKey
};
// Apply formatting to controls
var result = somClient.DashboardControlApplyAllDecor(tApply);
return result;
}
See also: