Windows grid hide a date field with value 1900-01-01

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
atostaine
Posts: 696
Joined: Wed Jan 20, 2016 7:38 am

Windows grid hide a date field with value 1900-01-01

Post by atostaine »

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
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

Post by Jurgen.Rentinck »

Hi Art,

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)
atostaine
Posts: 696
Joined: Wed Jan 20, 2016 7:38 am

Re: Windows grid hide a date field with value 1900-01-01

Post by atostaine »

Thanks I don’t think that was working for me. Let me try again.
Art Tostaine
atostaine
Posts: 696
Joined: Wed Jan 20, 2016 7:38 am

Re: Windows grid hide a date field with value 1900-01-01

Post by atostaine »

Thanks I don’t think that was working for me. Let me try again.
Art Tostaine
atostaine
Posts: 696
Joined: Wed Jan 20, 2016 7:38 am

Re: Windows grid hide a date field with value 1900-01-01

Post by atostaine »

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
Art Tostaine
Post Reply