Page 1 of 1

Creation and Edit DateTime data not visible in Detail View when set to read only?

Posted: 2019-01-30 00:26
by peebee
In AggGini V5.72

Use <%%creationDateTime%%> or <%%editingDateTime%%> as Auto default value with DateTime data type.

Set field to "Read Only" as prompted by AppGini

Creation and Edit date and time is stored correctly in the database and displayed OK in Table View but field is blank in Detail View?

Remedy is to uncheck Read Only for those fields in AppGini - but then of course date/time picker is loaded to Detail View template and it is necessary to manually remove it to create the readonly field?

Just me - or is this a bug?

Re: Creation and Edit DateTime data not visible in Detail View when set to read only?

Posted: 2019-01-30 04:25
by peebee
OK, User error after all. :oops:

Should have spent a bit more time and worked out what I was doing wrong before posting to save embarrassment. Perhaps it might somebody some time into the future......

What I did wong:

The App config is set to display UK short date/time format (30/01/2019 03:15 PM)

I had set two fields with <%%creationDateTime%%> and <%%editingDateTime%%> as Auto default value with DateTime data type. Read Only

I had also set the Data Format (on the Data Format tab of the actual field) for each of those two fields to UK Short Date. That was the problem.

If I leave the App config as UK Short Date and then remove any special data formatting for the individual fields - all works as expected.