Can I add a timestamp to a Rules Object Type in Foundry? - palantir-foundry

I am trying to create a rules object that will return the current date so that we know when it is last modified. Is this possible? If so, what is the best way to include this field?

Yes, this is possible. When creating the Rules and Proposals, be sure to include fields with timestamps, such as the Last Modified Timestamp field below.
In the rules section for Action Types, which will affect either Proposals or Rules, be sure to change the timestamp field to “Current Time” rather than an input field.
If you do that, every time you submit an action type it will add the current time to the Rule or Proposal.

Related

How do I configure an Action to record the current timestamp or current user?

I'd like to allow users to edit an Object and want to record the time and by whom the edit was made. Is there a way to do this with an Action?
Current Timestamp can be part of your logic rule. Here are the steps to configure:
Generate a logic rule
Click in to the parameter you want to store current time
Select Current Timestamp from the dropdown
Note that this configuration only supports timestamps, not date types.
You can follow the same steps to add Current User to a string column, for example on a "last modified by" property.

My TDBgrid is showing 1899/12/30 in a Time Field

My TDbgrid is displaying "1899/12/30 23:00" in a time field. I have connected the database via a dynamic link , so i cannot change anything via design. I am aware that there is solution to this on StackOverflow but i cannot use the solution because my database is connected dynamically. Is there a way to display the time only.
Thank you.
This is by design, as the "zero date" value of DateTime is Access in 1899-12-30.
Thus, your time value of your sample is 23:00:00.
However, a DateTime value carries no format, so the solution is up to you - apply the format you wish to the value whenever you wish to display the time - in your case, the format will most likely be hh:nn (in VBA, don't know about Delphi).

viewing underlying value in access lookup field

If I have a lookup field in Access with the first (bound) column hidden by setting field widths to 0";1", is there a way to see the real underlying value of the field without having to change the formatting of the lookup column?
I don't believe there is a way to access the available values without editing the lookup column.
With that said, I would point out the following:
Changing the formatting of the lookup column only impacts 2 things.
When you navigate the records from the table view you will see the new definition.
Any forms created in the future will now inherit the new definition.
In other words, changing the formatting of the lookup column doesn't impact any forms you may have already created based upon that field.
You can have a more descriptive description in your table that is completely separate from the definition in your forms.
If you want to know all of the values I suggest that you edit the drop down to show a concatenation of columns 1 and 2.
For example, lets say you had a value list of
1;foo;2;bar
The value list could be changed to
1;1-foo;2;2-bar
Then you know at a glance what the "hidden" field value represents. (The same could be done if the record source is a query.)
Turns out that there is a very simple way to do it. In the query, go to field properties and click on the "Lookup" tab, and choose textbox.

Sparse columns or normal columns?

I have 6 columns of date-time type in a table. My application has a requirement that each column should have additional column one for validation that can be of a bit datatype and another modified date-time if user wants to modify it. So my question is that is there any thing better than adding 2 column for each column I have? Also I know about Sparse columns which I can use to save my table space but still is there any thing better I can do??
The 'Bit' Logic
So there are 3 columns
original datetime,
modified datetime and
Validation bit.
Validation bit is by default set to false. When user want to change the date-time then modified date-time column will be updated with new value; however, there will be no change in original date-time column. Now user has to make decision whether value being entered is validated or not. The validation bit will decide this functionality.
I would disable the Valid checkbox until they enter a modified date. Sparse for those two columns works.

Detect time of last change on a Microsoft Access database table

Does anyone know of a way to detect when the last time a Microsoft Access table has been changed (inserted into or updated)? We used OLEDB via ADO COM to communicate with an access database programmatically and were looking for a way of detecting changes to specific tables. We don't need to know what those changes are, just that changes were made.
The only way to detect if data in the table has changed is to perform a query against the table.
You must add a column of type DATETIME to the table e.g. named LastUpdatedDate that indicates the last updated date/time of each row. Make it NOT NULL so that you will have to write an updated DATETIME value to that column for each INSERT or UPDATE. Also, set the column to have a default of DATE() for the current date stamp or NOW() for the current date/time stamp. Then add a Validation Rule or CHECK constraint e.g. CHECK (LastUpdatedDate = NOW()) to ensure the column is actually updated on each UPDATE and INSERT.
Finally, run a MAX(LastUpdatedDate) query and you will get what you need.
There isn't a way without "manually" writing to a column each time you access the table.
As others have indicated there is no way to track changes without coding it yourself.
There's a simple example at
ACC2000: How to Create an Audit Trail of Record Changes in a Form
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q197592
Audit Trail - Log changes at the record level at:
http://allenbrowne.com/AppAudit.html
The article addresses edits, inserts, and deletes for a form and subform.
Modules: Maintain a history of changes
http://www.mvps.org/access/modules/mdl0021.htm
The History Table routine is designed to write history records that track the changes made to fields in one or more tables.
You will need to implement a timestamp column in your table, and update the value during your data changes.