Below is the example of using the OpenEax operation to open an express report. The request contains moniker of the object that is an express report. The response contains moniker of opened express report instance. Any additional data is not extracted.
{ "OpenEax" : { "tObject" : { "id" : "S1!M!189" }, "tArg" : { "args" : { "storeObject" : "true" } } } }
{ "OpenEaxResult" : { "id" : { "id" : "S1!M!S!E1" } } }
The OpenEax function specified below opens express report in the repository. The repository connection moniker and the express report identifier are sent as input parameters. 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 OpenEax(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() }, //Form object moniker tObject = new OdId() { id = mb.id + "!" + eaxObj.k} }; //Open express report var result = somClient.OpenEax(tOpen); return result; }
See also: