bool PrxMetaToolbarReset(string mon)
mon. Moniker for working with regular report toolbar.
The PrxMetaToolbarReset operation resets regular report toolbar settings.
To execute the operation, in the mon field specify moniker of opened regular report instance with the !Toolbar postfix. The moniker can be obtained on executing the OpenPrxMeta operation.
When executing the operation, all movements are canceled, the list of system buttons is restored, custom groups of buttons are deleted, and custom buttons are moved to the upper level of the toolbar and are placed as they were added.
The operation results in the logical True if toolbar settings are reset successfully.
Below is the example of resetting regular report toolbar settings. The request contains moniker for working with a toolbar. The response contains whether settings were reset successfully.
{
"PrxMetaToolbarReset" :
{
"mon" : "LCLLBBEIEFKBGOAENKKDCFBJGAGPPNOEEIFDDPMFCJBKDAAO!M!S!PGCIMHFEIEFKBGOAEIIPKPKLDBHAAANNEHJFBNNCMNBABJDCG!Toolbar"
}
}
{
"PrxMetaToolbarResetResult" : "1"
}
public static bool PrxMetaToolbarReset(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tReset = new PrxMetaToolbarReset()
{
mon = moniker + "!Toolbar"
};
// Reset toolbar settings
var result = somClient.PrxMetaToolbarReset(tReset);
return result;
}
See also: