GetDimSelectionSchema

Syntax

DimSelectionSchemaResult GetDimSelectionSchema(OdId tOb, GetDimSelectionSchemaArgs tArg)

Parameters

tOb. Opened selection schema instance moniker.

tArg. Operation execution parameters.

Description

The GetDimSelectionSchema operation gets selection schema metadata.

Comments

The operation gets selection schema description and information about selection schema primitives.

To execute the operation, in the tOb field specify moniker of opened selection schema instance, and in the tArg field specify operation execution parameters. The moniker can be obtained on executing the OpenDimSelectionSchema operation.

The operation results in the requested information.

Example

Below is the example of getting information about selection schema primitives. The request contains moniker of opened selection schema instance and the pattern that determines which metadata should be obtained. The response contains the obtained information.

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">
<GetDimSelectionSchema xmlns="http://www.fsight.ru/PP.SOM.Som">
<tOb xmlns="">
  <id>S1!M!S!DSS1</id>
  </tOb>
<tArg xmlns="">
<pattern>
  <obInst>true</obInst>
  <primitives>Get</primitives>
  </pattern>
  </tArg>
  </GetDimSelectionSchema>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetDimSelectionSchemaResult 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="">
<primitives>
<its>
<it>
  <selectionType>Specified</selectionType>
  <deselect>0</deselect>
<selectedElems>
  <it>0</it>
  <it>1</it>
  <it>2</it>
  </selectedElems>
<selId>
  <id>S1!M!S!DSS2</id>
  </selId>
  </it>
  </its>
  </primitives>
  </meta>
  </GetDimSelectionSchemaResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"GetDimSelectionSchema" :
{
"tOb" :
{
"id" : "S1!M!S!DSS1"
},
"tArg" :
{
"pattern" :
{
"obInst" : "true",
"primitives" : "Get"
}
}
}
}

JSON response:

{
"GetDimSelectionSchemaResult" :
{
"id" :
{
"id" : "S1!M!S!DSS1"
},
"meta" :
{
"primitives" :
{
"its" :
{
"it" :
[
{
"selectionType" : "Specified",
"deselect" : "0",
"selectedElems" :
{
"it" :
[
"0",
"1",
"2"
]
},
"selId" :
{
"id" : "S1!M!S!DSS2"
}
}
]
}
}
}
}
}
public static DimSelectionSchemaResult GetPrimitives(string moniker)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tGet = new GetDimSelectionSchema()
{
tOb = new OdId() { id = moniker },
tArg = new GetDimSelectionSchemaArgs()
{
pattern = new DimSelectionSchemaMdPattern()
{
primitives = ListOperation.Get
}
}
};
//Get list of selection schema primitives
var result = somClient.GetDimSelectionSchema(tGet);
return result;
}

See also:

Working with Dictionaries