PrxMetaToolbarReset

Syntax

bool PrxMetaToolbarReset(string mon)

Parameters

mon. Moniker for working with regular report toolbar.

Description

The PrxMetaToolbarReset operation resets regular report toolbar settings.

Comments

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.

Example

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.

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">
<PrxMetaToolbarReset xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">LCLLBBEIEFKBGOAENKKDCFBJGAGPPNOEEIFDDPMFCJBKDAAO!M!S!PGCIMHFEIEFKBGOAEIIPKPKLDBHAAANNEHJFBNNCMNBABJDCG!Toolbar</mon>
  </PrxMetaToolbarReset>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"PrxMetaToolbarReset" :
{
"mon" : "LCLLBBEIEFKBGOAENKKDCFBJGAGPPNOEEIFDDPMFCJBKDAAO!M!S!PGCIMHFEIEFKBGOAEIIPKPKLDBHAAANNEHJFBNNCMNBABJDCG!Toolbar"
}
}

JSON response:

{
"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:

Working with Regular Reports