Notifications
Announcements
No record found.
Hello !
How can I hide the value in a grid if the date is minvalue type (1900-01-01)
Currently showing 12:00:00 and I need you to show nothing.
Thanks
*This post is locked for comments
Hi,
if your field is from type UtcDateTime the minimum value is '1900-01-01T00:00:00'. Check which value is in stored in the field -> if the value is '1900-01-01T12:00:00' you have found the problem.
You can set the value to null by using following method:
utcDateTimeNull()
Regards,
Stefan
Hello Stefan, I add the utcdatetime field to the table, and it was inserted with that date by default 1900-01-01 12:00:00. I also create a second column with the name + tzid
Could you let us know the EDT that you are using on your DateTime field.As, when I used SysDateTime EDT I am able to get blank value on form and table and
on the backend it stores as "1900-01-01 00:00:00.000".
If it's a custom field you can change its EDT to SysDateTime and check.
Refer screen shot below(Colored in yellow):
I do not use any EDT.
I will use sysutcdatetime and I send you my comments.
Thanks!
Already use sysutcdatetime but still the time appears, compile and update the table, incremental cyl and restart, but the EDT does not appear in the grid field.
Is the datetime field mandatory on your table? if so I feel it's trying to assign some value. Please try the following code in your data source initvalue method on your form.
Table.DateTime = DateTimeUtil::MinValue();
(or)
Table.DateTime = utcDateTimeNull();
Thanks,
Chaitanya Golla
Hi Chaitanya, I filled the grid with a button, set a range.
Does not enter the initvalue() method, then insert the line in the method init()
But still showing the time in the column :(
Sorry for my English, I'm from Mexico
This show in SQL
No problem. initValue(on formdatsource) is the method that gets called when a record is created. Please try statement Table.DateTime = utcDateTimeNull() in initvalue (or) in the insert method of the table and also if the datetime is mandatory check by making it optional.
Chaitanya
Don't enter in method :(
And I do not think it necessary to put it in the table insert method because the records already exist.
Only from other process, i update the datetime.
initValue method will be called only when we create a record and not during updates.Please try the same statement i.e Table.DateTime = utcDateTimeNull() when you update the record(s) from other process.
Thanks,Chaitanya Golla
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Priya_K 4
Martin Dráb 4 Most Valuable Professional
Ali Zaidi 2