bool DashboardApplyRelations(string mon)
mon. Information panel data source moniker.
tArg. Operation execution parameters.
The DashboardApplyRelations operation applies the changes made in settings of the relations used by calculated facts.
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.
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.
{
"DashboardApplyRelations" :
{
"mon" : "LKACHLFPHPFFGOAEFAJMIHOHCKLEPLKEEIENANDBMODOBJMH!M!S!PHOONDMFPHPFFGOAEGILOHDKLDDEDFAAEEJAAJAMKHGKPJBCK!Sources!1"
}
}
{
"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: