PrxMetaAssembliesRemove

Syntax

bool PrxMetaAssembliesRemove(string mon, OpItemKey tArg)

Parameters

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

tArg. Key of the unit removed from the list of units used in regular report.

Description

The PrxMetaAssembliesRemove operation removes the unit from 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 key can be obtained in regular report metadata in the meta.assemblies field.

The operation results in the logical True if the unit was removed successfully from the list of used units.

Example

Below is the example of removing the unit from the list of units used in regular report. The request contain moniker for working with regular report units and key of removed unit. The response contains whether the unit is successfully removed.

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">
<PrxMetaAssembliesRemove xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">HANNJOPNPCELFOAEJFGPFOPFEEHICAPEBIMHOPKGAAKDKPMF!M!S!PCFKKIAAOPCELFOAEOGBMLBELLHDGNIIEELCKLGJENJDHJKKA!Assemblies</mon>
<tArg xmlns="">
  <k>1</k>
  </tArg>
  </PrxMetaAssembliesRemove>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"PrxMetaAssembliesRemove" :
{
"mon" : "HANNJOPNPCELFOAEJFGPFOPFEEHICAPEBIMHOPKGAAKDKPMF!M!S!PCFKKIAAOPCELFOAEOGBMLBELLHDGNIIEELCKLGJENJDHJKKA!Assemblies",
"tArg" :
{
"k" : "1"
}
}
}

JSON response:

{
"PrxMetaAssembliesRemoveResult" : "1"
}
public static bool RemoveModule(string moniker, uint modKey)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tDel = new PrxMetaAssembliesRemove()
{
tArg = new OpItemKey() { k = modKey },
mon = moniker + "!Assemblies"
};
//Delete sheet
var result = somClient.PrxMetaAssembliesRemove(tDel);
return result;
}

See also:

Working with Regular Reports