OpenDimSelectionSchema

Syntax

DimSelectionSchemaResult OpenDimSelectionSchema(OdId tOb, OpenDimSelectionSchemaArgs tArg)

Parameters

tOb. Selection schema moniker in repository.

tArg. Operation execution parameters.

Description

The OpenDimSelectionSchema operation opens dictionary selection schema.

Comments

The operation gets access to selection schema structure. To execute the operation, in the tOb field specify selection schema moniker, and in the tArg field specify operation execution parameters. The selection schema moniker can be created based on the selection schema obtained from dictionary child elements using the GetObjects operation.

The operation results in the information about selection schema and its primitives.

Example

Below is the example of opening dictionary selection schema for editing. The request contains moniker of the object that is a selection schema. The response contains opened instance moniker and selection schema description.

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">
<OpenDimSelectionSchema xmlns="http://www.fsight.ru/PP.SOM.Som">
<tOb xmlns="">
  <id>S1!M!293564</id>
  </tOb>
<tArg xmlns="">
  <openForEdit>true</openForEdit>
<metaGet>
  <obInst>true</obInst>
  <od>true</od>
  </metaGet>
  </tArg>
  </OpenDimSelectionSchema>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<OpenDimSelectionSchemaResult 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="">
  <id>S1!M!S!DSS1</id>
  </id>
<meta xmlns="">
<od ds="" isShortcut="0" isLink="0" ver="4" hf="0">
  <i>OBJ293564</i>
  <n>Dictionary elements selection schema</n>
  <k>293564</k>
  <c>1030</c>
  <p>293441</p>
  <h>0</h>
  <hasPrv>0</hasPrv>
  <ic>0</ic>
  <trackElementDependents>0</trackElementDependents>
  </od>
  </meta>
  </OpenDimSelectionSchemaResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"OpenDimSelectionSchema" :
{
"tOb" :
{
"id" : "S1!M!293564"
},
"tArg" :
{
"openForEdit" : "true",
"metaGet" :
{
"obInst" : "true",
"od" : "true"
}
}
}
}

JSON response:

{
"OpenDimSelectionSchemaResult" :
{
"id" :
{
"id" : "S1!M!S!DSS1"
},
"meta" :
{
"od" :
{
"@ds" : "",
"@isShortcut" : "0",
"@isLink" : "0",
"@ver" : "4",
"@hf" : "0",
"i" : "OBJ293564",
"n" : "Dictionary elements selection schema",
"k" : "293564",
"c" : "1030",
"p" : "293441",
"h" : "0",
"hasPrv" : "0",
"ic" : "0",
"trackElementDependents" : "0"
}
}
}
}
public static DimSelectionSchemaResult OpenDimSelectionSchema(string moniker)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tOpen = new OpenDimSelectionSchema()
{
tOb = new OdId() { id = moniker },
tArg = new OpenDimSelectionSchemaArgs()
{
openForEdit = true,
metaGet = new DimSelectionSchemaMdPattern()
{
od = true
}
}
};
//Open selection schema
var result = somClient.OpenDimSelectionSchema(tOpen);
return result;
}

See also:

Working with Dictionaries