DashboardControlApplySelection

Syntax

bool DashboardControlApplySelection(string mon)

Parameters

mon. Moniker for working with information panel control.

Description

The DashboardControlApplySelection operation applies control selection to controlled visualizers.

Comments

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.

Example

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.

SOAP request:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<DashboardControlApplySelection xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">DDAHEFONHJEHGOAEEDLJNELPBEBAIMJEJILGKJKBBPLABDMK!M!S!PMAMCNGONHJEHGOAEGHJFDCONGPFPHECEDKMIJJCJCFJDMONM!Controls!2</mon>
  </DashboardControlApplySelection>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
  <DashboardControlApplySelectionResult xmlns="http://www.fsight.ru/PP.SOM.Som" xmlns:q1="http://www.fsight.ru/PP.SOM.Som" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">1</DashboardControlApplySelectionResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"DashboardControlApplySelection" :
{
"mon" : "DDAHEFONHJEHGOAEEDLJNELPBEBAIMJEJILGKJKBBPLABDMK!M!S!PMAMCNGONHJEHGOAEGHJFDCONGPFPHECEDKMIJJCJCFJDMONM!Controls!2"
}
}

JSON response:

{
"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:

Working with Information Panels