CreateRdsElementResult SetRdsElement(RdsId tRds, SetRdsElementArg tArg)
tRds. Moniker of opened MDM dictionary instance.
tArg. Operation execution parameters.
The SetRdsElement operation changes values of attributes of the created/edited MDM dictionary element.
The operation is used after the CreateRdsElement operation was executed and before all changes will be saved using the SetRdsElements operation. To execute the operation, in the tRds field specify moniker of opened MDM dictionary instance. The moniker can be obtained on executing the OpenRds operation. In the tArg field specify the values set to attributes. If value is set for the attribute that changes value of linked dictionary parameter, the linked dictionary will be rebuilt. The updated information about dictionary selection will be available after executing the operation.
Below is the example of changing attribute value of MDM dictionary element. The request contains moniker of opened MDM dictionary instance and attribute values. If any linked dictionary is rebuilt after changing the value, information about this dictionary will be available in the operation result.
{
"SetRdsElement" :
{
"tRds" :
{
"id" : "IENCFEAEIJJEGOAEBOMILAAAFCDPKEPEOLCOBNEJCOFGNDKK!M!S!NMLBPBFAEIJJEGOAEGMHMCAMPNPBCIIHEAIADFGGFONBIEDAA"
},
"tArg" :
{
"its" :
{
"it" :
[
{
"id" : "FOR_PARAM",
"value" : "2"
}
]
}
}
}
}
{
"SetRdsElementResult" :
{
"id" :
{
"id" : "IENCFEAEIJJEGOAEBOMILAAAFCDPKEPEOLCOBNEJCOFGNDKK!M!S!NMLBPBFAEIJJEGOAEGMHMCAMPNPBCIIHEAIADFGGFONBIEDAA"
},
"its" :
{
"it" :
[
{
"id" : "TOLINK",
"value" : "IENCFEAEIJJEGOAEBOMILAAAFCDPKEPEOLCOBNEJCOFGNDKK!M!S!NMLBPBFAEIJJEGOAEGMHMCAMPNPBCIIHEAIADFGGFONBIEDAA!Links!1!DimSelection"
}
]
}
}
}
public static CreateRdsElementResult SetRdsElement(string moniker, AttrValPair[] attrsValues)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tSet = new SetRdsElement()
{
tArg = new SetRdsElementArg()
{
its = attrsValues
},
tRds = new RdsId() { id = moniker }
};
// Change element attributes
var tResult = somClient.SetRdsElement(tSet);
return tResult;
}
See also: