UndoRedoStartGroup

Syntax

bool UndoRedoStartGroup(string mon)

Parameters

mon. Moniker of opened regular report instance.

Description

The UndoRedoStartGroup operation starts grouping of user actions for undo/redo stack.

Comments

After executing the UndoRedoStartGroup operation and before executing the UndoRedoEndGroup operation all user actions in undo/redi stack will be registered as a single action. Undoing/redoing of this grouped action will result in executing a sequence of operations that are necessary for birning the report to the required form.

To execute the operation, in the mon field specify moniker of opened regular report instance. The moniker can be obtained on executing the OpenPrxMeta operation.

The operation results in the logical true if grouping of actions was started successfully.

Example

Below is the example of starting grouping of user actions regular report for undo/redo stack. The request contains moniker of opened regular report instance. The response returns whether grouping of actions was started 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">
<UndoRedoStartGroup xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">PANFAFPCDBFFGOAEONGMBAFDMGMCNOGEGKDDOBOFJIOIKHJP!M!S!PACDBAKPCDBFFGOAECNKDFEKGKPOJNMFEGLEPJFHMJJJCLIOM</mon>
  </UndoRedoStartGroup>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"UndoRedoStartGroup" :
{
"mon" : "PANFAFPCDBFFGOAEONGMBAFDMGMCNOGEGKDDOBOFJIOIKHJP!M!S!PACDBAKPCDBFFGOAECNKDFEKGKPOJNMFEGLEPJFHMJJJCLIOM"
}
}

JSON response:

{
"UndoRedoStartGroupResult" : "1"
}
public static bool UndoRedoStartGroup(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGroup = new UndoRedoStartGroup()
{
mon = moniker
};
// Start grouping of actions for undo/redo stack.
var result = somClient.UndoRedoStartGroup(tGroup);
return result;
}

See also:

Working with Regular Reports