Hi,
I would like to know if it's possible to store a NULL date into a table (Oracle database) using CAPI.EXEC because I have tried doing these instructions but none of them worked for me knowing that it's allowed to store null date in the table.
I'm wondernig if anyone faced this problem before and if there is any workaround
Omar.
I would like to know if it's possible to store a NULL date into a table (Oracle database) using CAPI.EXEC because I have tried doing these instructions but none of them worked for me knowing that it's allowed to store null date in the table.
Code:
if(myJsonData.eventDate.value != ')
[indent]myAssoc.eventDate = Date.StringToDate(myJsonData.eventDate.value, "%d/%m/%Y")[/indent]
else
[indent]myAssoc.eventDate = 'NULL'[/indent]
end
Code:
if(myJsonData.eventDate.value != ')
[indent]myAssoc.eventDate = Date.StringToDate(myJsonData.eventDate.value, "%d/%m/%Y")[/indent]
else
[indent]myAssoc.eventDate = '(NULL)'[/indent]
end
Code:
if(myJsonData.eventDate.value != ')
[indent]myAssoc.eventDate = Date.StringToDate(myJsonData.eventDate.value, "%d/%m/%Y")[/indent]
else
[indent]myAssoc.eventDate = '[/indent]
end
I'm wondernig if anyone faced this problem before and if there is any workaround
Omar.