Kbase P185163: WRITE-XML with Omit-Initial-Values set to False can generate wrong results using dynamic dataset
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  4/1/2011 |
|
Status: Unverified
SYMPTOM(s):
WRITE-XML with Omit-Initial-Values set to False can generate wrong results using dynamic dataset
Creating a dynamic prodataset where the temp-table contains an integer field with an initial value of ? and an actual value of 0
When writing content to XML with WRITE-XML, the value of the integer field is not written into the XML file
XML output file does not contain irecobatc 0 when using a dynamic dataset
Dynamic DataSet - Omit-Initial-Values = False: <irecobatc>0</irecobatc>
Dynamic DataSet - Omit-Initial-Values = True: No entry in XML file.
Dynamic DataSet - Reloading XML file where Omit-Initial-Values = True (READ-XML) and then using WRITE-XML again results in: <irecobatc xsi:nil="true"/>
XML output file does contain irecobatc 0 when using a static dataset
Static DataSet - Omit-Initial-Values = False: <irecobatc>0</irecobatc>
Static DataSet - Omit-Initial-Values = True: <irecobatc>0</irecobatc>
Static DataSet - Reloading XML file where Omit-Initial-Values = True (READ-XML) and then using WRITE-XML again results in: <irecobatc>0</irecobatc>
FACT(s) (Environment):
OpenEdge 10.2x
All Supported Operating Systems
CAUSE:
Bug# OE00206235
FIX:
Set the initial value of the field to the default value of the data-type (e.g. 0 for integer)