DashboardControlApplyAllDecor

Syntax

bool DashboardControlApplyAllDecor(string mon)

Parameters

mon. Moniker for working with information panel control.

Description

The DashboardControlApplyAllDecor operation applies formatting to all information panel controls.

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. 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.

Example

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.

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">
<DashboardControlApplyAllDecor xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">DDAHEFONHJEHGOAEEDLJNELPBEBAIMJEJILGKJKBBPLABDMK!M!S!PMAMCNGONHJEHGOAEGHJFDCONGPFPHECEDKMIJJCJCFJDMONM!Controls!1</mon>
  </DashboardControlApplyAllDecor>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
  <DashboardControlApplyAllDecorResult 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</DashboardControlApplyAllDecorResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"DashboardControlApplyAllDecor" :
{
"mon" : "DDAHEFONHJEHGOAEEDLJNELPBEBAIMJEJILGKJKBBPLABDMK!M!S!PMAMCNGONHJEHGOAEGHJFDCONGPFPHECEDKMIJJCJCFJDMONM!Controls!1"
}
}

JSON response:

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

Working with Information Panels