PrxObjectCreate

Syntax

PrxObjectCreateResult PrxObjectCreate(string mon, string objectType)

Parameters

mon. Regular report sheet moniker.

objectType. Type of created object.

Description

The PrxObjectCreate operation creates a new object on a regular report sheet.

Comments

To execute the operation, in the mon field specify the moniker in the following format: 'Regular report instance moniker!Sheets!Sheet key', and in the objectType field specify the type of created object. Available values of the objectType field:

Moniker of regular report instance can be obtained on executing the OpenPrxMeta operation.

The operation results in the identifier of created object.

Example

Below is the example of creating a chart on a regular report sheet. The request contains sheet moniker and created object type that is a chart. The response contains identifier of the created chart.

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">
<PrxObjectCreate xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">S1!M!S!P1!Sheets!1</mon>
  <objectType xmlns="">PrxChart</objectType>
  </PrxObjectCreate>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"PrxObjectCreate" :
{
"mon" : "S1!M!S!P1!Sheets!1",
"objectType" : "PrxChart"
}
}

JSON response:

{
"PrxObjectCreateResult" :
{
"id" : "PrxChart3"
}
}
public static PrxObjectCreateResult CreatePrxChart(string moniker)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tCreate = new PrxObjectCreate()
{
objectType = "PrxChart",
mon = moniker + "!Sheets!1"
};
//Create a chart
var result = somClient.PrxObjectCreate(tCreate);
return result;
}

See also:

Working with Regular Reports