bool DashboardFormulaEditorRollback(string mon)
mon. Information panel element moniker.
The DashboardFormulaEditorRollback operation cancels undoes the changes made in information panel element or data model element expression.
The operations undoes changes in SQL queries, calculated field expressions, data model table filtering. To execute the operation, in the mon field specify moniker of edited element.
The moniker is created from moniker of opened information panel instance or data model with adding the following postfixes:
!Sources!Queries!Elements!query key!Ufe. To work with SQL queries.
!Fields!field key!Ufe. To work with calculated fields.
!Ufe. To set up filtering in data model table.
The operation results in the logical true if changes were undone successfully.
Below is the example of undoing the changes made in data model SQL query. The request contains moniker of SQL query saved in data model. The response contains whether changes are successfully canceled.
{
"DashboardFormulaEditorRollback" :
{
"mon" : "JGFBABFGGBCDGOAEBMHDIAHPJIKJBODEGIEMDGCEMLPABPHA!M!S!PAKKBPCFGGBCDGOAEPJJNAKJDEPCJOIOEJLMIGOFHBOBCOFGO!Sources!Queries!Elements!1!Ufe"
}
}
{
"DashboardFormulaEditorRollbackResult" : "1"
}
public static bool DashboardFormulaEditorRollback(string moniker, uint elementkey)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tRollback = new DashboardFormulaEditorRollback()
{
// Element moniker
mon = moniker + "!Sources!Queries!Elements!" + elementkey + "!Ufe"
};
// Roll back changes
var result = somClient.DashboardFormulaEditorRollback(tRollback);
return result;
}
See also: