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 obtained.
The C# example uses the FindObjectById function, which code is given in the Getting Object Description by Its Identifier section.
{ "OpenEax" : { "tObject" : { "id" : "S1!M!189" }, "tArg" : { "args" : { "storeObject" : "true" } } } }
{ "OpenEaxResult" : { "id" : { "id" : "S1!M!S!E1" } } }
public static OpenEaxResult OpenEax(MbId mb, string eaxId)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tOpen = new OpenEax()
{
tArg = new OpenEaxArg()
{
args = new EaxOpenArgs()
},
//Create object moniker
tObject = new OdId() { id = mb.id + "!" + FindObjectById(mb, eaxId).k }
};
//Open express report
var result = somClient.OpenEax(tOpen);
return result;
}
See also: