OpItemKey PrxMetaAssembliesAdd(string mon, OdId tObject)
mon. Moniker for worming with units used in regular report.
tObject. Moniker of added unit.
The PrxMetaAssembliesAdd operation adds a development environment unit to the list of units used in regular report.
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.
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.
{
"PrxMetaAssembliesAdd" :
{
"mon" : "HANNJOPNPCELFOAEJFGPFOPFEEHICAPEBIMHOPKGAAKDKPMF!M!S!PCFKKIAAOPCELFOAEOGBMLBELLHDGNIIEELCKLGJENJDHJKKA!Assemblies",
"tObject" :
{
"id" : "HANNJOPNPCELFOAEJFGPFOPFEEHICAPEBIMHOPKGAAKDKPMF!M!300110"
}
}
}
{
"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: