bool DashboardControlsMove(string mon, ItemMoveInfo arg)
mon. Moniker for working with information panel controls.
arg. Parameters for moving controls.
The DashboardControlsMove operation moves information panel controls.
To execute the operation, in the mon field specify moniker of opened information panel instance with the !Controls postfix, and in the arg field specify index of the position, from which and to which the control is moved. The moniker can be obtained on executing the OpenDashboard operation.
The operation results in the logical true if the control was moved successfully.
Below is the example of moving the control. The request contains moniker for working with controls and number of the position, fro which and to which key the control is moved. The response contains whether a block is moved successfully.
{
"DashboardControlsMove" :
{
"mon" : "DDAHEFONHJEHGOAEEDLJNELPBEBAIMJEJILGKJKBBPLABDMK!M!S!PMAMCNGONHJEHGOAEGHJFDCONGPFPHECEDKMIJJCJCFJDMONM!Controls",
"arg" :
{
"indexFrom" : "1",
"indexTo" : "0"
}
}
}
{
"DashboardControlsMoveResult" : "1"
}
public static bool DashboardControlsMove(string moniker, long _from, long _to)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tMove = new DashboardControlsMove()
{
arg = new ItemMoveInfo()
{
indexFrom = _from,
indexTo = _to
},
mon = moniker + "!Controls"
};
// Move control
var result = somClient.DashboardControlsMove(tMove);
return result;
}
See also: