GetDimHierarchiesSettings

Syntax

DimHierarchiesSettingsResult GetDimHierarchiesSettings(DmId tDim)

Parameters

tDim. Dictionary instance moniker.

Description

The GetDimHierarchiesSettings operation gets information about dictionary alternative hierarchies.

Comments

To execute the operation, in the tDim field specify dictionary moniker. The moniker can be obtained on executing the OpenDim operation.

The operation results in the information about added alternative hierarchies an their links with the specified dictionary.

Example

Below is the example of getting information about dictionary alternative hierarchies. The request contains dictionary instance moniker.

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">
<GetDimHierarchiesSettings xmlns="http://www.fsight.ru/PP.SOM.Som">
<tDim xmlns="">
  <id>S6!M!S!DM1</id>
  </tDim>
  </GetDimHierarchiesSettings>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetDimHierarchiesSettingsResult 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">
<hierarchies xmlns="">
<its>
<it>
  <k>1</k>
  <id>SOURCE1</id>
  <n>Dim_1 (En)</n>
  <vis>1</vis>
  <sourceDimKey>154</sourceDimKey>
  <sourceDimCls>1025</sourceDimCls>
  <originalDimKey>293441</originalDimKey>
<sourceIndex>
  <k>156</k>
  <id>INDEX1</id>
  <n>Index1</n>
  <vis>1</vis>
  </sourceIndex>
<attributesBindings>
<it>
  <originalAttrId>NAME</originalAttrId>
  <sourceAttrId>NAME</sourceAttrId>
  </it>
<it>
  <originalAttrId>ID</originalAttrId>
  <sourceAttrId>ID</sourceAttrId>
  </it>
<it>
  <originalAttrId>ORDER</originalAttrId>
  <sourceAttrId>ORDER</sourceAttrId>
  </it>
<it>
  <originalAttrId>PARENT</originalAttrId>
  <sourceAttrId>PARENT</sourceAttrId>
  </it>
<it>
  <originalAttrId>CODE</originalAttrId>
  <sourceAttrId />
  </it>
  </attributesBindings>
<attrs>
<it>
  <k>117</k>
  <id>NAME</id>
  <n>Name</n>
  <vis>1</vis>
  <dt>1</dt>
  <predefined>Name</predefined>
  <dataDomain>0</dataDomain>
  <nullable>1</nullable>
  <hasHierarchy>0</hasHierarchy>
  </it>
<it>
  <k>118</k>
  <id>ID</id>
  <n>Identifier</n>
  <vis>1</vis>
  <dt>2</dt>
  <uniqueIndex>INDEX1</uniqueIndex>
  <predefined>Ident</predefined>
  <dataDomain>0</dataDomain>
  <nullable>1</nullable>
  <hasHierarchy>0</hasHierarchy>
  </it>
<it>
  <k>119</k>
  <id>ORDER</id>
  <n>Order</n>
  <vis>1</vis>
  <dt>2</dt>
  <predefined>Order</predefined>
  <dataDomain>0</dataDomain>
  <nullable>1</nullable>
  <hasHierarchy>0</hasHierarchy>
  </it>
<it>
  <k>122</k>
  <id>PARENT</id>
  <n>Parent</n>
  <vis>1</vis>
  <dt>2</dt>
  <dataDomain>0</dataDomain>
  <nullable>1</nullable>
  <hasHierarchy>0</hasHierarchy>
  </it>
  <ident>1</ident>
  <name>0</name>
  <order>2</order>
  </attrs>
<indexes>
<it>
  <k>156</k>
  <id>INDEX1</id>
  <n>Index1</n>
  <vis>1</vis>
<attrs>
<it>
  <k>118</k>
  <id>ID</id>
  <n>Identifier</n>
  <vis>1</vis>
  </it>
  </attrs>
  <primary>1</primary>
  <unique>1</unique>
  <useInSelection>0</useInSelection>
  <caseSensitive>1</caseSensitive>
  </it>
  </indexes>
  </it>
  </its>
<originalIndex>
  <k>155</k>
  <id>INDEX1</id>
  <n>Index1</n>
  <vis>1</vis>
  </originalIndex>
<attrs>
<it>
  <k>117</k>
  <id>NAME</id>
  <n>Name</n>
  <vis>1</vis>
  <dt>1</dt>
  <predefined>Name</predefined>
  <dataDomain>0</dataDomain>
  <nullable>1</nullable>
  <hasHierarchy>0</hasHierarchy>
  </it>
<it>
  <k>118</k>
  <id>ID</id>
  <n>Identifier</n>
  <vis>1</vis>
  <dt>2</dt>
  <uniqueIndex>INDEX1</uniqueIndex>
  <predefined>Ident</predefined>
  <dataDomain>0</dataDomain>
  <nullable>1</nullable>
  <hasHierarchy>0</hasHierarchy>
  </it>
<it>
  <k>119</k>
  <id>ORDER</id>
  <n>Order</n>
  <vis>1</vis>
  <dt>2</dt>
  <predefined>Order</predefined>
  <dataDomain>0</dataDomain>
  <nullable>1</nullable>
  <hasHierarchy>0</hasHierarchy>
  </it>
<it>
  <k>122</k>
  <id>PARENT</id>
  <n>Parent</n>
  <vis>1</vis>
  <dt>2</dt>
  <dataDomain>0</dataDomain>
  <nullable>1</nullable>
  <hasHierarchy>0</hasHierarchy>
  </it>
<it>
  <k>177</k>
  <id>CODE</id>
  <n>Code</n>
  <vis>1</vis>
  <dt>1</dt>
  <dataDomain>0</dataDomain>
  <nullable>1</nullable>
  <hasHierarchy>0</hasHierarchy>
  </it>
  <ident>1</ident>
  <name>0</name>
  <order>2</order>
  </attrs>
<indexes>
<it>
  <k>155</k>
  <id>INDEX1</id>
  <n>Index1</n>
  <vis>1</vis>
<attrs>
<it>
  <k>118</k>
  <id>ID</id>
  <n>Identifier</n>
  <vis>1</vis>
  </it>
  </attrs>
  <primary>1</primary>
  <unique>1</unique>
  <useInSelection>0</useInSelection>
  <caseSensitive>1</caseSensitive>
  </it>
  </indexes>
  </hierarchies>
  </GetDimHierarchiesSettingsResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"GetDimHierarchiesSettings" :
{
"tDim" :
{
"id" : "S6!M!S!DM1"
}
}
}

JSON response:

{
"GetDimHierarchiesSettingsResult" :
{
"hierarchies" :
{
"its" :
{
"it" :
[
{
"k" : "1",
"id" : "SOURCE1",
"n" : "Dim_1 (En)",
"vis" : "1",
"sourceDimKey" : "154",
"sourceDimCls" : "1025",
"originalDimKey" : "293441",
"sourceIndex" :
{
"k" : "156",
"id" : "INDEX1",
"n" : "Index1",
"vis" : "1"
},
"attributesBindings" :
{
"it" :
[
{
"originalAttrId" : "NAME",
"sourceAttrId" : "NAME"
},
{
"originalAttrId" : "ID",
"sourceAttrId" : "ID"
},
{
"originalAttrId" : "ORDER",
"sourceAttrId" : "ORDER"
},
{
"originalAttrId" : "PARENT",
"sourceAttrId" : "PARENT"
},
{
"originalAttrId" : "CODE",
"sourceAttrId" : ""
}
]
},
"attrs" :
{
"it" :
[
{
"k" : "117",
"id" : "NAME",
"n" : "Name",
"vis" : "1",
"dt" : "1",
"predefined" : "Name",
"dataDomain" : "0",
"nullable" : "1",
"hasHierarchy" : "0"
},
{
"k" : "118",
"id" : "ID",
"n" : "Identifier",
"vis" : "1",
"dt" : "2",
"uniqueIndex" : "INDEX1",
"predefined" : "Ident",
"dataDomain" : "0",
"nullable" : "1",
"hasHierarchy" : "0"
},
{
"k" : "119",
"id" : "ORDER",
"n" : "Order",
"vis" : "1",
"dt" : "2",
"predefined" : "Order",
"dataDomain" : "0",
"nullable" : "1",
"hasHierarchy" : "0"
},
{
"k" : "122",
"id" : "PARENT",
"n" : "Parent",
"vis" : "1",
"dt" : "2",
"dataDomain" : "0",
"nullable" : "1",
"hasHierarchy" : "0"
}
],
"ident" : "1",
"name" : "0",
"order" : "2"
},
"indexes" :
{
"it" :
{
"k" : "156",
"id" : "INDEX1",
"n" : "Index1",
"vis" : "1",
"attrs" :
{
"it" :
{
"k" : "118",
"id" : "ID",
"n" : "Identifier",
"vis" : "1"
}
},
"primary" : "1",
"unique" : "1",
"useInSelection" : "0",
"caseSensitive" : "1"
}
}
}
]
},
"originalIndex" :
{
"k" : "155",
"id" : "INDEX1",
"n" : "Index1",
"vis" : "1"
},
"attrs" :
{
"it" :
[
{
"k" : "117",
"id" : "NAME",
"n" : "Name",
"vis" : "1",
"dt" : "1",
"predefined" : "Name",
"dataDomain" : "0",
"nullable" : "1",
"hasHierarchy" : "0"
},
{
"k" : "118",
"id" : "ID",
"n" : "Identifier",
"vis" : "1",
"dt" : "2",
"uniqueIndex" : "INDEX1",
"predefined" : "Ident",
"dataDomain" : "0",
"nullable" : "1",
"hasHierarchy" : "0"
},
{
"k" : "119",
"id" : "ORDER",
"n" : "Order",
"vis" : "1",
"dt" : "2",
"predefined" : "Order",
"dataDomain" : "0",
"nullable" : "1",
"hasHierarchy" : "0"
},
{
"k" : "122",
"id" : "PARENT",
"n" : "Parent",
"vis" : "1",
"dt" : "2",
"dataDomain" : "0",
"nullable" : "1",
"hasHierarchy" : "0"
},
{
"k" : "177",
"id" : "CODE",
"n" : "Code",
"vis" : "1",
"dt" : "1",
"dataDomain" : "0",
"nullable" : "1",
"hasHierarchy" : "0"
}
],
"ident" : "1",
"name" : "0",
"order" : "2"
},
"indexes" :
{
"it" :
{
"k" : "155",
"id" : "INDEX1",
"n" : "Index1",
"vis" : "1",
"attrs" :
{
"it" :
{
"k" : "118",
"id" : "ID",
"n" : "Identifier",
"vis" : "1"
}
},
"primary" : "1",
"unique" : "1",
"useInSelection" : "0",
"caseSensitive" : "1"
}
}
}
}
}
public static DimHierarchiesSettingsResult GetHierarchies(string moniker)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tGet = new GetDimHierarchiesSettings()
{
tDim = new DmId() { id = moniker }
};
//Get information about alternative hierarchies
var result = somClient.GetDimHierarchiesSettings(tGet);
return result;
}

See also:

Working with Dictionaries