
How can I set up two fields, one showing date/time record was created, one showing date/time of last modification?
No clue as to what is required here
-
Thank you, Steven.
I'm just starting out.
Is there a beginner's guide to Ninox scripting syntax somewhere?
Is there a list of all possible scripting elements somewhere?
Right now, I have a field of type Date/Time labelled "Date Modified". I want to take advantage of Steven's _md, but I have no idea into which option or even into which object to put it. Does it go into my "Date Modified," or is it somehow attached to the record itself?
I also don't know how to build it out into an effective formula. (Sorry for my level of ignorance.)
-
Here is the Manual:
https://ninoxdb.de/en/manual/tutorial/tutorial
for the Reference of Functions and Language:
https://ninoxdb.de/en/manual/calculations/reference-of-functions-and-language
Nick
-
Still struggling with Date Created and Date Modified using the Mac version 2.4.3.
Date Created, using the formula, "text(_cd)", auto-modified to "text('Created on')", shows proper date and time when a new record is created, but, when I touch the cloud icon and then reopen the record, the date is gone.
Date Modified, using the formula, "text(_md)", acts just the way Date Created does: It constantly shows the creation date & time, not the modified date & time, never updating when I change data even in multiple fields, and the data likewise disappears when the cloud icon is touched.
Am I doing something wrong, or are these bugs?
-
I see now I was working in entirely the wrong place. This function has to be done in the Edit Fields... option in the Table menu.
I first created two new Date/Time fields titled Created on and Modified on.
Then, in the Table | Edit Fields dialog, under "Trigger on create," I entered the formula: 'Created on' := now()
In the Trigger after update, I entered: 'Modified on' := now()
Everything now works perfectly!
-
Thanks, Nick. Your solution posted while I was writing mine. Apparently, they've fixed "Created on" and "Modified on" as they appear to be working now. My biggest problem was that I was trying to enter the formula in the fields I had created to hold the dates, since I didn't know about the built-in trigger boxes in the table-specific stuff under "Table | Edit fields..." So much to learn!
-
I'm having a similar problem, on both iPad and iPhone. I set the Trigger on Create and Trigger After Update as indicated in this message thread. For the Modified Date, I used the formula;
format('Modified on', "MM/DD/YY")
The creation date is put into this field when a record is created. But there are two problems:
1. The data never changes after I modify the record.
2. When I close the database, then reopen it, the dates are gone.
What am I missing?
-
https://forum.ninox.com/t/m1hr810?r=m1hrk46
is there a way to do this as a formula instead of a trigger so I can format the output? Thanks