GetSeg

Syntax

GetSegResult GetSeg(SegId tSeg, GetSegArg tArg)

Parameters

tSeg. Cube segment instance moniker.

tArg. Operation execution parameters.

Description

The GetSeg operation gets cube segment metadata.

Comments

To execute the operation, in the tSeg field specify segment instance moniker, and in the tArg.pattern field specify the pattern that will be used to get metadata. The moniker can be obtained after executing the OpenSeg operation.

The operation results in the obtained metadata.

Example

Below is the example of getting cube segment metadata. The request contains moniker of opened segment instance. The response contains the obtained metadata.

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">
<GetSeg xmlns="http://www.fsight.ru/PP.SOM.Som">
<tSeg xmlns="">
  <id>FLEDMHBOCLDPFOAEDMFBLHBLOEJDMKEEKKHHKBBDHHIFPONM!M!S!CNOKHLMBOCLDPFOAECLPBNGOGGLICIMAEJIEMIFKOCDIBJKCM</id>
  </tSeg>
<tArg xmlns="">
<pattern>
  <obInst>true</obInst>
  <selections>Get</selections>
  <active>true</active>
  </pattern>
  </tArg>
  </GetSeg>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetSegResult 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>FLEDMHBOCLDPFOAEDMFBLHBLOEJDMKEEKKHHKBBDHHIFPONM!M!S!CNOKHLMBOCLDPFOAECLPBNGOGGLICIMAEJIEMIFKOCDIBJKCM</id>
  </id>
<meta xmlns="">
<obInst>
<obDesc ds="" isShortcut="0" isLink="0" ver="4" hf="0">
  <i>OBJ317192</i>
  <n>Cube segment</n>
  <k>317192</k>
  <c>1295</c>
  <p>317162</p>
  <h>0</h>
  <hasPrv>0</hasPrv>
  <ic>0</ic>
  <trackElementDependents>0</trackElementDependents>
  <isPermanent>1</isPermanent>
  <isTemp>0</isTemp>
  </obDesc>
  </obInst>
  <dirty>0</dirty>
<data>
  <active>0</active>
<selections>
<its>
<it>
  <id>FACTS</id>
  <k>317074</k>
  <n>Facts</n>
  <classId>1028</classId>
  <selection>FLEDMHBOCLDPFOAEDMFBLHBLOEJDMKEEKKHHKBBDHHIFPONM!M!S!CBELIBOBOCLDPFOAEEHNKPOJODKGKIEEEOJCFOCLHCMEIJKDL</selection>
  <included>1</included>
  </it>
<it>
  <id>OBJ317067</id>
  <k>317067</k>
  <n>Dictionary 1</n>
  <classId>3076</classId>
  <selection>FLEDMHBOCLDPFOAEDMFBLHBLOEJDMKEEKKHHKBBDHHIFPONM!M!S!CBELIBOBOCLDPFOAENOJILFIHBELKNFAEALMNNFAJOOJOFNEJ</selection>
  <included>1</included>
  </it>
<it>
  <id>OBJ317069</id>
  <k>317069</k>
  <n>Dictionary 2</n>
  <classId>3076</classId>
  <selection>FLEDMHBOCLDPFOAEDMFBLHBLOEJDMKEEKKHHKBBDHHIFPONM!M!S!CBELIBOBOCLDPFOAEOGICMPLDDFJOANAEGIJNBDLMDNMMCAML</selection>
  <included>1</included>
  </it>
<it>
  <id>OBJ317071</id>
  <k>317071</k>
  <n>Calendar</n>
  <classId>1026</classId>
  <selection>FLEDMHBOCLDPFOAEDMFBLHBLOEJDMKEEKKHHKBBDHHIFPONM!M!S!CBELIBOBOCLDPFOAEICINIJOAOBONHJPELKFACMADOKJEDOHK</selection>
  <included>1</included>
  </it>
  </its>
  </selections>
  </data>
  </meta>
  </GetSegResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"GetSeg" :
{
"tSeg" :
{
"id" : "FLEDMHBOCLDPFOAEDMFBLHBLOEJDMKEEKKHHKBBDHHIFPONM!M!S!CNOKHLMBOCLDPFOAECLPBNGOGGLICIMAEJIEMIFKOCDIBJKCM"
},
"tArg" :
{
"pattern" :
{
"obInst" : "true",
"selections" : "Get",
"active" : "true"
}
}
}
}

JSON response:

{
"GetSegResult" :
{
"id" :
{
"id" : "FLEDMHBOCLDPFOAEDMFBLHBLOEJDMKEEKKHHKBBDHHIFPONM!M!S!CNOKHLMBOCLDPFOAECLPBNGOGGLICIMAEJIEMIFKOCDIBJKCM"
},
"meta" :
{
"obInst" :
{
"obDesc" :
{
"@ds" : "",
"@isShortcut" : "0",
"@isLink" : "0",
"@ver" : "4",
"@hf" : "0",
"i" : "OBJ317192",
"n" : "Cube segment",
"k" : "317192",
"c" : "1295",
"p" : "317162",
"h" : "0",
"hasPrv" : "0",
"ic" : "0",
"trackElementDependents" : "0",
"isPermanent" : "1",
"isTemp" : "0"
}
},
"dirty" : "0",
"data" :
{
"active" : "0",
"selections" :
{
"its" :
{
"it" :
[
{
"id" : "FACTS",
"k" : "317074",
"n" : "Facts",
"classId" : "1028",
"selection" : "FLEDMHBOCLDPFOAEDMFBLHBLOEJDMKEEKKHHKBBDHHIFPONM!M!S!CBELIBOBOCLDPFOAEEHNKPOJODKGKIEEEOJCFOCLHCMEIJKDL",
"included" : "1"
},
{
"id" : "OBJ317067",
"k" : "317067",
"n" : "Dictionary 1",
"classId" : "3076",
"selection" : "FLEDMHBOCLDPFOAEDMFBLHBLOEJDMKEEKKHHKBBDHHIFPONM!M!S!CBELIBOBOCLDPFOAENOJILFIHBELKNFAEALMNNFAJOOJOFNEJ",
"included" : "1"
},
{
"id" : "OBJ317069",
"k" : "317069",
"n" : "Dictionary 2",
"classId" : "3076",
"selection" : "FLEDMHBOCLDPFOAEDMFBLHBLOEJDMKEEKKHHKBBDHHIFPONM!M!S!CBELIBOBOCLDPFOAEOGICMPLDDFJOANAEGIJNBDLMDNMMCAML",
"included" : "1"
},
{
"id" : "OBJ317071",
"k" : "317071",
"n" : "Calendar",
"classId" : "1026",
"selection" : "FLEDMHBOCLDPFOAEDMFBLHBLOEJDMKEEKKHHKBBDHHIFPONM!M!S!CBELIBOBOCLDPFOAEICINIJOAOBONHJPELKFACMADOKJEDOHK",
"included" : "1"
}
]
}
}
}
}
}
}
public static GetSegResult GetSeg(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetSeg()
{
tArg = new GetSegArg()
{
pattern = new SegMdPattern()
{
active = true,
selections = ListOperation.Get
}
},
tSeg = new SegId() { id = moniker }
};
// Get information about cube segment
var result = somClient.GetSeg(tGet);
return result;
}

See also:

Working with Cubes