<< Click to Display Table of Contents >> Navigation: »No topics above this level« FieldValue structure |
This structure is used by webservices and consists of a fieldname (Field) and a value (Value) for the field.
Fieldnames are technical specifications for a field in an entity/table and can be found in the Data Dictionary.They're shaped <ENTITY.FIELD> like: KLANTCONTRACT.CONTRACTNUMMER.
Should a field specify that a listvalue should be used, then a possible value can also be found in the datadictionary. Should there be a code in the table with possible values for a certain list value then this should be used (as a string value) and in other cases the number should be used (as a Number value)
Example:
String waarde
<crud:FieldValue>
<crud: Field>KLANTCONTRACT.CONTRACTNUMMER</crud:Field>
<crud:Value xsi:type="xsd:string">C10197</crud:Value>
</crud:FieldValue>
Listvalue as a string value
<crud:FieldValue>
<crud:Field>KLANTCONTRACT.AFWIJKENDPRIOTOEGESTAAN</crud:Field>
<crud:Value xsi:type="xsd:string">J</crud:Value>
</crud:FieldValue>
Number value
<crud:FieldValue>
<crud:Field>KLANTCONTRACT.KLANTID</crud:Field>
<crud:Value xsi:type="xsd:long">822</crud:Value>
</crud:FieldValue>
Number value with decimals
<crud:FieldValue>
<crud:Field>SPAN.FIBERDAMPING</crud:Field>
<crud:Value xsi:type="xsd:decimal">1.27</crud:Value>
</crud:FieldValue>
Datum waarde
<crud:FieldValue>
<crud:Field>KLANTCONTRACT.CONTRACT_END_DATE</crud:Field>
<crud:Value xsi:type="xsd:date">2016-07-11-06:00</crud:Value>
</crud:FieldValue>
The used prefixes xsi en xsd must be announced SOAP Envelope: xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"