I am working with ODATA connection and found some of issues
1) Boolean data type on datawindow
The Xml of the Odata source shows boolean data type, for example: <d:Importing m:type="Edm.Boolean">false</d:Importing>
The datawindow design shows Boolean a data type:
But the field ind the datawindow is created with char(5) type
I can not save the text "true" or "false" , it returns an error
If I change the type of the field to long, as it does with SQL server, using edit source of the DW and try to save 0 or 1, returns error.
Any suggestions to deal with it?
2)
When creating the datawindow some features are not enabled in the DW Editor, including update properties.
But previewing the DW allows to save data.
If I delete a field from the select, the update is lost from DW preview, and obviously cannot update database from code.
Solved this by including again for example update="co_compras" updatewhere=0 updatekeyinplace=yes back with DW edit source.
Something is deleting this from DW inside the painter.
3)
I can create a Data Store from the odata source, fill values and save. But If I don´t retrieve before, the update willl not work
This way works fine:
ds.retrieve()
ds.reset()
ds.insertrow(0)
ds.setitem...
ds.update(true,true)
If there no retrieve/reset the odata update returns that some fields are null and required. The reset should set everything back to how it was before the retrieve(), but it works. Something seems to be filled in the DW with the retrieve().
Any thoughts of this issues?
Regards
Alfredo