bool DashboardFormulaEditorDelete(string mon)
mon. Information panel element moniker.
The DashboardFormulaEditorDelete operation deletes expressions for information panel element or data model element edited in the expression editor.
The operation deletes SQL queries, calculated field expressions, and 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 expression was deleted successfully.
Below is the example of deleting SQL query text in data model. The request contains moniker of SQL query saved in data model. The response contains whether SQL query text was deleted successfully.
{
"DashboardFormulaEditorDelete" :
{
"mon" : "JGFBABFGGBCDGOAEBMHDIAHPJIKJBODEGIEMDGCEMLPABPHA!M!S!PAKKBPCFGGBCDGOAEPJJNAKJDEPCJOIOEJLMIGOFHBOBCOFGO!Sources!Queries!Elements!1!Ufe"
}
}
{
"DashboardFormulaEditorDeleteResult" : "1"
}
public static bool DashboardFormulaEditorDelete(string moniker, uint elementkey)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tDel = new DashboardFormulaEditorDelete()
{
// Element moniker
mon = moniker + "!Sources!Queries!Elements!" + elementkey + "!Ufe"
};
// Delete expression
var result = somClient.DashboardFormulaEditorDelete(tDel);
return result;
}
See also: