We have date data types in our subfiles with csv export enabled. When we export and date is null, xl has 0001-01-01. Is there anyway to make the cell blank on a null date?
Thank you.
Date data type in csv export
-
- New User
- Posts: 6
- Joined: Fri Aug 23, 2013 3:44 pm
- First Name: Karthik
- Last Name: Ramachandran
- Company Name: Summit Consulting Inc.
- Contact:
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: Date data type in csv export
Is this a database-driven subfile? or one that you are loading from RPG?
Display files don't have the concept of "null", but if this is database-driven you could use SQL's IFNULL or COALESCE to map nulls to blanks.
If this is RPG driven, your RPG program could check if the field is null and send blanks to the display.
When the field is displayed on the screen, does it show up as blank? Or as 0001-01-01? The CSV should match what is on the display.
Display files don't have the concept of "null", but if this is database-driven you could use SQL's IFNULL or COALESCE to map nulls to blanks.
If this is RPG driven, your RPG program could check if the field is null and send blanks to the display.
When the field is displayed on the screen, does it show up as blank? Or as 0001-01-01? The CSV should match what is on the display.
-
- New User
- Posts: 6
- Joined: Fri Aug 23, 2013 3:44 pm
- First Name: Karthik
- Last Name: Ramachandran
- Company Name: Summit Consulting Inc.
- Contact:
Re: Date data type in csv export
subfile is loaded through the rpg program and I am clearing the subfile field if field in file is null. On the subfile I am seeing a blank field. But the xl cell shows 0001-01-01.
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: Date data type in csv export
Can you please post a JSON dump? To do this, navigate so that your subfile with the blank dates is on the display. Then, press Ctrl-F9 -- it will ask to download a file named json.txt -- this is the file I need.
Either attach it to a message here, or e-mail it to support@profoundlogic.com
Either attach it to a message here, or e-mail it to support@profoundlogic.com
Who is online
Users browsing this forum: No registered users and 6 guests