UndoRedoEndGroup

Syntax

bool UndoRedoEndGroup(string mon)

Parameters

mon. Moniker of opened regular report instance.

Description

The UndoRedoEndGroup operation finishes 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/redo 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 actions were grouped successfully.

Example

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

SOAP response:

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

JSON request:

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

JSON response:

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

See also:

Working with Regular Reports