DimSelectionSchemaResult OpenDimSelectionSchema(OdId tOb, OpenDimSelectionSchemaArgs tArg)
tOb. Selection schema moniker in repository.
tArg. Operation execution parameters.
The OpenDimSelectionSchema operation opens dictionary selection schema.
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.
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.
{
"OpenDimSelectionSchema" :
{
"tOb" :
{
"id" : "S1!M!293564"
},
"tArg" :
{
"openForEdit" : "true",
"metaGet" :
{
"obInst" : "true",
"od" : "true"
}
}
}
}
{
"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: