Below is the example of using the OpenPrx operation to open a regular report. The request contains moniker of the object that is a regular report. The response contains the opened report instance moniker. Any additional data is not extracted.
{ "OpenPrx" : { "tObject" : { "id" : "S1!M!6334" }, "tArg" : { "args" : "" } } }
{ "OpenPrxResult" : { "id" : { "id" : "S1!M!S!P1" } } }
The OpenPrx function specified below opens a regular report. 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 OpenPrxResult OpenPrx(MbId mb, string prxId) { var somClient = new SomPortTypeClient(); //Proxy object for operation execution //Operation execution parameters var tOpen = new OpenPrx() { tArg = new OpenPrxArg() { args = new PrxOpenArgs() }, //Form object moniker tObject = new OdId() { id = mb.id + "!" + FindObjectById(mb, prxId).k } }; //Open regular report var result = somClient.OpenPrx(tOpen); return result; }
See also: