DimHierarchiesSettingsResult GetDimHierarchiesSettings(DmId tDim)
tDim. Dictionary instance moniker.
The GetDimHierarchiesSettings operation gets information about dictionary alternative hierarchies.
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.
Below is the example of getting information about dictionary alternative hierarchies. The request contains dictionary instance moniker.
{
"GetDimHierarchiesSettings" :
{
"tDim" :
{
"id" : "S6!M!S!DM1"
}
}
}
{
"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: