DashboardApplyRelations

Syntax

bool DashboardApplyRelations(string mon)

Parameters

mon. Information panel data source moniker.

tArg. Operation execution parameters.

Description

The DashboardApplyRelations operation applies the changes made in settings of the relations used by calculated facts.

Comments

To execute the operation, in the mon field specify moniker of opened information panel instance with the !Sources!data source key postfix. The moniker can be obtained on executing the OpenDashboard operation.

The operation results in the logical true if changes were successfully saved.

Example

Below is the example of applying the changes made in relation settings. The request contains moniker of information panel data source. The response contains whether changes were 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">
<DashboardApplyRelations xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">LKACHLFPHPFFGOAEFAJMIHOHCKLEPLKEEIENANDBMODOBJMH!M!S!PHOONDMFPHPFFGOAEGILOHDKLDDEDFAAEEJAAJAMKHGKPJBCK!Sources!1</mon>
  </DashboardApplyRelations>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"DashboardApplyRelations" :
{
"mon" : "LKACHLFPHPFFGOAEFAJMIHOHCKLEPLKEEIENANDBMODOBJMH!M!S!PHOONDMFPHPFFGOAEGILOHDKLDDEDFAAEEJAAJAMKHGKPJBCK!Sources!1"
}
}

JSON response:

{
"DashboardApplyRelationsResult" : "1"
}
public static bool DashboardApplyRelations(string moniker, uint sourceKey)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tApply = new DashboardApplyRelations()
{
// Moniker for working with relations
mon = moniker + "!Sources!" + sourceKey
};
// Apply changes in relation settings
var result = somClient.DashboardApplyRelations(tApply);
return result;
}

See also:

Working with Information Panels