bool DashboardControlApplySelection(string mon)
mon. Moniker for working with information panel control.
The DashboardControlApplySelection operation applies control selection to controlled visualizers.
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. After executing the operation the control selection is applied to all visualizers linked to the control. To change the selection, use the ChangeDimSelection operation. The required selection moniker can be obtained in the binding field in control settings.
The operation results in the logical true if selection is successfully applied to controlled visualizers.
Below is the example of applying control selection to controlled visualizers. It is assumed that selection is already set. The request contains control moniker. The response contains whether control selection is applied successfully to visualizers.
{
"DashboardControlApplySelection" :
{
"mon" : "DDAHEFONHJEHGOAEEDLJNELPBEBAIMJEJILGKJKBBPLABDMK!M!S!PMAMCNGONHJEHGOAEGHJFDCONGPFPHECEDKMIJJCJCFJDMONM!Controls!2"
}
}
{
"DashboardControlApplySelectionResult" : "1"
}
public static bool DashboardControlApplySelection(string moniker, uint controlKey)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tApply = new DashboardControlApplySelection()
{
mon = moniker + "!Controls!" + controlKey
};
// Apply selection to controlled visualizers
var result = somClient.DashboardControlApplySelection(tApply);
return result;
}
See also: