Below is the example of using the OpenEax operation to open an express report for edit. The request contains moniker of the object that is a report and a flag indicating whether the report must be opened for edit. The response contains moniker of opened express report instance. Any additional data is not extracted.
{ "OpenEax" : { "tObject" : { "id" : "S1!M!189" }, "tArg" : { "args" : { "openForEdit" : "true", "storeObject" : "true" } } } }
{ "OpenEaxResult" : { "id" : { "id" : "S1!M!S!E2" } } }
The OpenEaxForEdit function specified below opens repository express report for edit. The repository connection moniker and the express report identifier are sent as input parameters. The function body contains a flag indicating that the report must open for edit. The example uses the FindObjectById function, which code is given in the Getting Object Description by Its Identifier example. The result of the operation is the result of the function.
public static OpenEaxResult OpenEaxForEdit(MbId mb, string eaxId) { var somClient = new SomPortTypeClient(); //Proxy object for operation execution //Search repository object var eaxObj = FindObjectById(mb, eaxId); //Operation execution parameters var tOpen = new OpenEax() { tArg = new OpenEaxArg() { args = new EaxOpenArgs() { openForEdit = true } }, //Form object moniker tObject = new OdId() { id = mb.id + "!" + eaxObj.k } }; //Open express report var result = somClient.OpenEax(tOpen); return result; }
See also: