PrxMetaAssembliesAdd

Syntax

OpItemKey PrxMetaAssembliesAdd(string mon, OdId tObject)

Parameters

mon. Moniker for worming with units used in regular report.

tObject. Moniker of added unit.

Description

The PrxMetaAssembliesAdd operation adds a development environment unit to the list of units used in regular report.

Comments

To execute the operation, in the mon field specify the regular report instance moniker with the !Assemblies postfix for working with report units, and in the tObject field specify moniker of added unit.

Report moniker can be obtained on executing the OpenPrxMeta operation.

Unit moniker can be obtained on executing the GetObjects operation.

The operation results in the key of added unit in the list of units used in report.

Example

Below is the example of adding a unit to the list of units used in regular report. The request contains the moniker for working with regular report units and the moniker of added unit. The response contains the key of added moniker in the list of units.

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">
<PrxMetaAssembliesAdd xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">HANNJOPNPCELFOAEJFGPFOPFEEHICAPEBIMHOPKGAAKDKPMF!M!S!PCFKKIAAOPCELFOAEOGBMLBELLHDGNIIEELCKLGJENJDHJKKA!Assemblies</mon>
<tObject xmlns="">
  <id>HANNJOPNPCELFOAEJFGPFOPFEEHICAPEBIMHOPKGAAKDKPMF!M!300110</id>
  </tObject>
  </PrxMetaAssembliesAdd>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<PrxMetaAssembliesAddResult 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">
  <k xmlns="">1</k>
  </PrxMetaAssembliesAddResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"PrxMetaAssembliesAdd" :
{
"mon" : "HANNJOPNPCELFOAEJFGPFOPFEEHICAPEBIMHOPKGAAKDKPMF!M!S!PCFKKIAAOPCELFOAEOGBMLBELLHDGNIIEELCKLGJENJDHJKKA!Assemblies",
"tObject" :
{
"id" : "HANNJOPNPCELFOAEJFGPFOPFEEHICAPEBIMHOPKGAAKDKPMF!M!300110"
}
}
}

JSON response:

{
"PrxMetaAssembliesAddResult" :
{
"k" : "1"
}
}
public static OpItemKey AddModule(string moniker, string modMoniker)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tAdd = new PrxMetaAssembliesAdd()
{
tObject = new OdId() { id = modMoniker },
mon = moniker + "!Assemblies"
};
//Add a new sheet
var result = somClient.PrxMetaAssembliesAdd(tAdd);
return result;
}

See also:

Working with Regular Reports