DashboardCancelRelations

Syntax

bool DashboardCancelRelations(string mon)

Parameters

mon. Information panel data source moniker.

Description

The DashboardCancelRelations operation cancels 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 canceled successfully.

Example

Below is the example of canceling the changes made in relation settings. The request contains moniker of information panel data source. The response contains whether changes are successfully canceled.

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">
<DashboardCancelRelations xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">LKACHLFPHPFFGOAEFAJMIHOHCKLEPLKEEIENANDBMODOBJMH!M!S!PHOONDMFPHPFFGOAEGILOHDKLDDEDFAAEEJAAJAMKHGKPJBCK!Sources!1</mon>
  </DashboardCancelRelations>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

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

JSON response:

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

See also:

Working with Information Panels