SetRdsElement

Syntax

CreateRdsElementResult SetRdsElement(RdsId tRds, SetRdsElementArg tArg)

Parameters

tRds. Moniker of opened MDM dictionary instance.

tArg. Operation execution parameters.

Description

The SetRdsElement operation changes values of attributes of the created/edited MDM dictionary element.

Comments

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.

Example

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.

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">
<SetRdsElement xmlns="http://www.fsight.ru/PP.SOM.Som">
<tRds xmlns="">
  <id>IENCFEAEIJJEGOAEBOMILAAAFCDPKEPEOLCOBNEJCOFGNDKK!M!S!NMLBPBFAEIJJEGOAEGMHMCAMPNPBCIIHEAIADFGGFONBIEDAA</id>
  </tRds>
<tArg xmlns="">
<its>
<it>
  <id>FOR_PARAM</id>
  <value>2</value>
  </it>
  </its>
  </tArg>
  </SetRdsElement>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<SetRdsElementResult 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>IENCFEAEIJJEGOAEBOMILAAAFCDPKEPEOLCOBNEJCOFGNDKK!M!S!NMLBPBFAEIJJEGOAEGMHMCAMPNPBCIIHEAIADFGGFONBIEDAA</id>
  </id>
<its xmlns="">
<it>
  <id>TOLINK</id>
  <value>IENCFEAEIJJEGOAEBOMILAAAFCDPKEPEOLCOBNEJCOFGNDKK!M!S!NMLBPBFAEIJJEGOAEGMHMCAMPNPBCIIHEAIADFGGFONBIEDAA!Links!1!DimSelection</value>
  </it>
  </its>
  </SetRdsElementResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"SetRdsElement" :
{
"tRds" :
{
"id" : "IENCFEAEIJJEGOAEBOMILAAAFCDPKEPEOLCOBNEJCOFGNDKK!M!S!NMLBPBFAEIJJEGOAEGMHMCAMPNPBCIIHEAIADFGGFONBIEDAA"
},
"tArg" :
{
"its" :
{
"it" :
[
{
"id" : "FOR_PARAM",
"value" : "2"
}
]
}
}
}
}

JSON response:

{
"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:

Working with MDM Dictionaries