<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how to create a time stamp column (record date) in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/how-to-create-a-time-stamp-column-record-date/m-p/13503#M12714</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One more idea...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Add a table script to the table called OnOpen.&amp;nbsp; Table scripts by this name are automatically run each time the table is opened. &lt;/LI&gt;&lt;LI&gt;In the OnOpen table script, add an OnAddRows subscription to the data table that will automatically assign the date to a specific column each time a row is added .&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is a simple example to demonstrate.&amp;nbsp; Please let me know how that works for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wendy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jul 2015 19:44:47 GMT</pubDate>
    <dc:creator>Wendy_Murphrey</dc:creator>
    <dc:date>2015-07-28T19:44:47Z</dc:date>
    <item>
      <title>how to create a time stamp column (record date)</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-create-a-time-stamp-column-record-date/m-p/13496#M12707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not know which formula to use for the result of;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A data table each day entering data manually (which creates new rows) and I need a date variable column using as "record date" or "time stamp" which represents the time when the new data has been entered as new row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help appreciated,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 08:54:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-create-a-time-stamp-column-record-date/m-p/13496#M12707</guid>
      <dc:creator>saitcopuroglu</dc:creator>
      <dc:date>2015-07-24T08:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a time stamp column (record date)</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-create-a-time-stamp-column-record-date/m-p/13497#M12708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the Today() function and format the column as a date time:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="9293_timestamp-def.PNG" style="width: 442px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/1870iBF4BA69D2412C700/image-size/medium?v=v2&amp;amp;px=400" role="button" title="9293_timestamp-def.PNG" alt="9293_timestamp-def.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As new rows are added as part of the manual data entry the formula with me evaluated:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="9294_timestamp.PNG" style="width: 624px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/1871i098EBD0F0CE51F4B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="9294_timestamp.PNG" alt="9294_timestamp.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could of course hide this column&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 23:59:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-create-a-time-stamp-column-record-date/m-p/13497#M12708</guid>
      <dc:creator>David_Burnham</dc:creator>
      <dc:date>2016-10-18T23:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a time stamp column (record date)</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-create-a-time-stamp-column-record-date/m-p/13498#M12709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry didn't see the Erics post when I replied&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 15:58:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-create-a-time-stamp-column-record-date/m-p/13498#M12709</guid>
      <dc:creator>David_Burnham</dc:creator>
      <dc:date>2015-07-24T15:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a time stamp column (record date)</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-create-a-time-stamp-column-record-date/m-p/13499#M12710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, my post was wrong (all I did was set Initialize Data to Today(), which was not enough, you need the formula column), so I'm glad you replied.&amp;nbsp; I deleted my post so nobody would be confused.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 16:08:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-create-a-time-stamp-column-record-date/m-p/13499#M12710</guid>
      <dc:creator>Eric_Hill</dc:creator>
      <dc:date>2015-07-24T16:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a time stamp column (record date)</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-create-a-time-stamp-column-record-date/m-p/13500#M12711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear David,&lt;/P&gt;&lt;P&gt;Dear Eric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help but it does not seem to perform the task. Yes it does when entering data but if you make any arangments (like I do as sorting the data) the Record Date column with Today() formula resets itself. &lt;/P&gt;&lt;P&gt;If there is any other idea I would be grateful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2015 06:52:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-create-a-time-stamp-column-record-date/m-p/13500#M12711</guid>
      <dc:creator>saitcopuroglu</dc:creator>
      <dc:date>2015-07-27T06:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a time stamp column (record date)</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-create-a-time-stamp-column-record-date/m-p/13501#M12712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey, saitcopuroglu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that neither approach (setting Initialize Data for the column to Today and creating a "Today()" formula column are satisfactory solutions to what you are trying to do.&amp;nbsp; Initialize Data is temporary, and the formula column could re-evaluate at a later time, invalidating the data.&amp;nbsp; It would be nice if creating an initializer for a column was persistent, so that it always initializes the data in a column when a row was added, but currently it doesn't work that way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your best bet may be to script the data entry into the table, so that your script initializes the timestamp column. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2015 12:35:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-create-a-time-stamp-column-record-date/m-p/13501#M12712</guid>
      <dc:creator>Eric_Hill</dc:creator>
      <dc:date>2015-07-27T12:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a time stamp column (record date)</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-create-a-time-stamp-column-record-date/m-p/13502#M12713</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's an idea. This idea is based on the notion that you will be entering data manually. I am making a big assumption that one more manual step will be OK with you.&lt;/P&gt;
&lt;P&gt;1. Assume you are using a table like the one created by the JSL below, similar to the image above.&lt;/P&gt;
&lt;P&gt;2. Every time you add a row, the "date w formula" column will update in real time, which contains the today() function suggested by &lt;A href="https://community.jmp.com/people/Dave@Pega-Analytics" target="_blank"&gt;Dave@Pega-Analytics&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;3. After you are done, and before you close the table, use Copy and Paste to Copy the values from "date w formula" to the "static date" column. The values will be copied and will be static. Note: only copy the empty values in a single session.&lt;/P&gt;
&lt;P&gt;4. Save the table, and this method can be repeated on future days as more data comes in and needs to be entered manually.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;/JSL to create sample table (I hope the formatting persists)
dt = new table("example", Add Rows(4),
   New Column( "my raw data", Numeric, Set Values( [1, 2, 3, 4] )
   ),
   New Column( "date w formula", Numeric, "Continuous",
     Format( "m/d/y h:m:s", 23, 0 ), Input Format( "m/d/y h:m:s", 0 ),
     Formula( Today() )
),
New Column( "static date", Numeric, "Continuous",
    Format( "m/d/y h:m:s", 23, 0 ),
)
);
 &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 15:40:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-create-a-time-stamp-column-record-date/m-p/13502#M12713</guid>
      <dc:creator>Audrey_Shull</dc:creator>
      <dc:date>2018-01-19T15:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a time stamp column (record date)</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-create-a-time-stamp-column-record-date/m-p/13503#M12714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One more idea...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Add a table script to the table called OnOpen.&amp;nbsp; Table scripts by this name are automatically run each time the table is opened. &lt;/LI&gt;&lt;LI&gt;In the OnOpen table script, add an OnAddRows subscription to the data table that will automatically assign the date to a specific column each time a row is added .&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is a simple example to demonstrate.&amp;nbsp; Please let me know how that works for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wendy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 19:44:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-create-a-time-stamp-column-record-date/m-p/13503#M12714</guid>
      <dc:creator>Wendy_Murphrey</dc:creator>
      <dc:date>2015-07-28T19:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a time stamp column (record date)</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-create-a-time-stamp-column-record-date/m-p/13504#M12715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Wendy, started testing this morning and it seems to work ! I will test for few days and will feedback, many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 08:31:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-create-a-time-stamp-column-record-date/m-p/13504#M12715</guid>
      <dc:creator>saitcopuroglu</dc:creator>
      <dc:date>2015-07-29T08:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a time stamp column (record date)</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-create-a-time-stamp-column-record-date/m-p/13505#M12716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it performs the task as you requested it.&amp;nbsp; The problem regarding rearranging the tables is common to all formulae.&amp;nbsp; But since your request was for a formula solution lets not give up yet.&amp;nbsp; First when you sort there is an option to prevent re-evaluation, or even better, drop the formula by not copying it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="9338_sort.PNG" style="width: 501px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/1907i6D138775B234B7BF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="9338_sort.PNG" alt="9338_sort.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But on the basis that there may be some other operations you perform which trigger re-evaluation then the formula can be revised to evaluate Today() only if there is no current value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="9339_fmlmissing.PNG" style="width: 432px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/1908iFE2A033B1C31EDF4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="9339_fmlmissing.PNG" alt="9339_fmlmissing.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;-Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 00:04:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-create-a-time-stamp-column-record-date/m-p/13505#M12716</guid>
      <dc:creator>David_Burnham</dc:creator>
      <dc:date>2016-10-19T00:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a time stamp column (record date)</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-create-a-time-stamp-column-record-date/m-p/13506#M12717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear W. Murphery; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thank you again, I tested it for 3 days and it works. Many thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Dear David Burnham; Than you for the idea, will try it also.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 14:11:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-create-a-time-stamp-column-record-date/m-p/13506#M12717</guid>
      <dc:creator>saitcopuroglu</dc:creator>
      <dc:date>2015-07-31T14:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a time stamp column (record date)</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-create-a-time-stamp-column-record-date/m-p/49856#M28351</link>
      <description>&lt;P&gt;There is also a video on this topic.&amp;nbsp; &lt;A href="https://www.youtube.com/watch?v=bS6ocFYomAY&amp;amp;t=9s" target="_blank"&gt;https://www.youtube.com/watch?v=bS6ocFYomAY&amp;amp;t=9s&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 14:13:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-create-a-time-stamp-column-record-date/m-p/49856#M28351</guid>
      <dc:creator>gail_massari</dc:creator>
      <dc:date>2018-01-19T14:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a time stamp column (record date)</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-create-a-time-stamp-column-record-date/m-p/352886#M60237</link>
      <description>Nice workaround. Is there any way of putting in a timestamp when a cell is updated/changed? Eg from status "Fail" to status "Pass"?</description>
      <pubDate>Tue, 26 Jan 2021 15:13:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-create-a-time-stamp-column-record-date/m-p/352886#M60237</guid>
      <dc:creator>Stefan</dc:creator>
      <dc:date>2021-01-26T15:13:58Z</dc:date>
    </item>
  </channel>
</rss>

