I have a date(10) field defined as a column in my grid. What's the best way to hide the value of 1900-01-01?
I've been fooling with grid.currentitem.cell but haven't had any success.
Thanks, art
Windows grid hide a date field with value 1900-01-01
Windows grid hide a date field with value 1900-01-01
Art Tostaine
-
Jurgen.Rentinck
- Posts: 11
- Joined: Wed Nov 25, 2015 9:02 pm
- Location: Amsterdam
- Contact:
Re: Windows grid hide a date field with value 1900-01-01
Hi Art,
Try to set the value to *SQLNULL before you add the entry to the list.
Try to set the value to *SQLNULL before you add the entry to the list.
Code: Select all
* this should result in an empty cell
#datex := *SQLNULL
Add_Entry To_List(#Grid1)
* this should result in an cell containing 01-01-1900
#datex := *NULL
Add_Entry To_List(#Grid1)
Re: Windows grid hide a date field with value 1900-01-01
Thanks I don’t think that was working for me. Let me try again.
Art Tostaine
Re: Windows grid hide a date field with value 1900-01-01
Thanks I don’t think that was working for me. Let me try again.
Art Tostaine
Re: Windows grid hide a date field with value 1900-01-01
Our field was imported from IBM i and SQLNull wasn't an allowed output attribute. LANSA won't let me add an attribute to an imported field. I made a new field and all works good.
Thanks
Thanks
Art Tostaine