GetRdsResult GetRds(RdsId tRds, GetRds tGet)
tRds. MDM dictionary instance moniker.
tGet. Parameters of metadata getting.
The GetRds operation gets MDM dictionary metadata.
This operation enables the user to get the following information about MDM dictionary structure:
Information about attributes.
Information about parameters.
Information about relationships with other dictionaries.
Information about levels.
Information about unique and non-unique keys.
Information about import and export schemas.
Parameters of dictionary translation into other languages.
To execute the operation, in the tRds parameter specify the dictionary instance moniker, and in the tArg parameter specify the parameters, according to which the information is obtained. The moniker can be obtained on executing the OpenRds operation. In the tArg.pattern field specify the pattern for getting information about dictionary structure. The operation results in the requested data.
Below is the example of getting MDM dictionary metadata. The request contains moniker of opened dictionary instance and the pattern that determines whether it is necessary to get all dictionary metadata. The response contains the obtained information.
{
"GetRds" :
{
"tRds" :
{
"id" : "S1!M!S!N2"
},
"tArg" :
{
"pattern" :
{
"obInst" : "true",
"all" : "true"
}
}
}
}
{
"GetRdsResult" :
{
"id" :
{
"id" : "S1!M!S!N2"
},
"meta" :
{
"obInst" :
{
"obDesc" :
{
"@ds" : "",
"@isShortcut" : "0",
"@isLink" : "0",
"@ver" : "4",
"@hf" : "0",
"i" : "FACT_ELEMENTS",
"n" : "Dictionary with indicators",
"k" : "219797",
"c" : "3076",
"p" : "5611",
"h" : "0",
"hasPrv" : "0",
"ic" : "0",
"trackElementDependents" : "0",
"isPermanent" : "1",
"isTemp" : "0"
}
},
"dirty" : "0",
"attrs" :
{
"its" :
{
"it" :
[
{
"k" : "1",
"id" : "KEY",
"n" : "Key",
"vis" : "0",
"predefined" : "Key",
"dt" : "2",
"kind" : "Predefined",
"nullable" : "0",
"hasMultipleValues" : "0",
"readAccess" : "",
"writeAccess" : "",
"timeDependent" : "0",
"tag" : "",
"visibleForEdit" : "0",
"isTranslation" : "0",
"dataDomain" : "0",
"defExpr" : "",
"isObjectLinked" : "0",
"hasHierarchy" : "0"
},
{
"k" : "2",
"id" : "NAME",
"n" : "Name",
"vis" : "1",
"predefined" : "Name",
"dt" : "1",
"kind" : "Predefined",
"nullable" : "0",
"hasMultipleValues" : "0",
"readAccess" : "",
"writeAccess" : "",
"timeDependent" : "0",
"tag" : "",
"visibleForEdit" : "1",
"isTranslation" : "0",
"dataDomain" : "0",
"defExpr" : "",
"isObjectLinked" : "0",
"hasHierarchy" : "0"
},
{
"k" : "3",
"id" : "PARENT_KEY",
"n" : "Owner",
"vis" : "0",
"predefined" : "ParentKey",
"dt" : "2",
"kind" : "Predefined",
"nullable" : "1",
"hasMultipleValues" : "0",
"readAccess" : "",
"writeAccess" : "",
"timeDependent" : "0",
"tag" : "",
"visibleForEdit" : "0",
"isTranslation" : "0",
"dataDomain" : "0",
"defExpr" : "",
"isObjectLinked" : "0",
"hasHierarchy" : "0"
},
{
"k" : "4",
"id" : "ORD",
"n" : "Order",
"vis" : "0",
"predefined" : "Order",
"dt" : "2",
"kind" : "Predefined",
"nullable" : "0",
"hasMultipleValues" : "0",
"readAccess" : "",
"writeAccess" : "",
"timeDependent" : "0",
"tag" : "",
"visibleForEdit" : "0",
"isTranslation" : "0",
"dataDomain" : "0",
"defExpr" : "",
"isObjectLinked" : "0",
"hasHierarchy" : "0"
},
{
"k" : "5",
"id" : "VERSION",
"n" : "Version",
"vis" : "0",
"predefined" : "Version",
"dt" : "2",
"kind" : "Predefined",
"nullable" : "0",
"hasMultipleValues" : "0",
"readAccess" : "",
"writeAccess" : "",
"timeDependent" : "0",
"tag" : "",
"visibleForEdit" : "0",
"isTranslation" : "0",
"dataDomain" : "0",
"defExpr" : "",
"isObjectLinked" : "0",
"hasHierarchy" : "0"
},
{
"k" : "6",
"id" : "INDATE",
"n" : "Start date",
"vis" : "0",
"predefined" : "InDate",
"dt" : "4",
"kind" : "Predefined",
"nullable" : "0",
"hasMultipleValues" : "0",
"readAccess" : "",
"writeAccess" : "",
"timeDependent" : "0",
"tag" : "",
"visibleForEdit" : "0",
"isTranslation" : "0",
"dataDomain" : "0",
"defExpr" : "",
"isObjectLinked" : "0",
"hasHierarchy" : "0"
},
{
"k" : "7",
"id" : "OUTDATE",
"n" : "End date",
"vis" : "0",
"predefined" : "OutDate",
"dt" : "4",
"kind" : "Predefined",
"nullable" : "0",
"hasMultipleValues" : "0",
"readAccess" : "",
"writeAccess" : "",
"timeDependent" : "0",
"tag" : "",
"visibleForEdit" : "0",
"isTranslation" : "0",
"dataDomain" : "0",
"defExpr" : "",
"isObjectLinked" : "0",
"hasHierarchy" : "0"
}
]
}
},
"db" :
{
"@ds" : "",
"@isShortcut" : "0",
"@isLink" : "0",
"@ver" : "2",
"@hf" : "0",
"i" : "DB",
"n" : "Database",
"k" : "56",
"c" : "513",
"p" : "12363",
"h" : "0",
"hasPrv" : "0",
"ic" : "0",
"trackElementDependents" : "0"
},
"links" :
{
"its" : ""
},
"params" :
{
"its" :
{
"it" :
[
{
"k" : "1",
"id" : "CURDATE",
"n" : "Actuality date",
"vis" : "1",
"predefined" : "CurDate",
"skipOnNull" : "0"
}
]
}
},
"translations" :
{
"its" : "",
"isON" : "0"
},
"levels" :
{
"its" : ""
},
"importSchemas" :
{
"its" : ""
},
"exportSchemas" :
{
"its" : ""
},
"uniqueKeys" :
{
"its" :
{
"it" :
[
{
"k" : "0",
"id" : "PREDEFINED",
"n" : "PREDEFINED",
"vis" : "1",
"hidden" : "1",
"useInSelection" : "0",
"caseSensitive" : "1"
}
]
}
},
"nonUniqueKeys" :
{
"its" : ""
},
"timeDependency" : "TimeReadOnly",
"eeCallback" : "",
"isHierarchical" : "1",
"isSecured" : "0",
"manageVisibility" : "0",
"isCompound" : "0",
"isBigDictionary" : "0",
"hasMandatoryAccess" : "0",
"hasDimMultipleValues" : "1",
"defaultElementKey" : "4294967295",
"isAbacSecured" : "0"
}
}
}
public static GetRdsResult GetRDSInfo(RdsId moniker)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tGet = new GetRds()
{
tArg = new GetRdsArg()
{
pattern = new RdsMdPattern()
{
all = true
}
},
tRds = moniker
};
//Get dictionary information
var result = somClient.GetRds(tGet);
return result;
}
See also: