Datetime Stamp for When Status set to a specific status.

  • 0
  • 1
  • Question
  • Updated 1 year ago
  • Answered
I want to a datetime stamp from a multiple choice field when set to a specific status. I do not want to use the log edit method, i want to status to only show the last status chosen. Is this possible? This needs to be done through grid edit. I am new to QuickBase and learning as i go
Photo of jeanne

jeanne

  • 374 Points 250 badge 2x thumb

Posted 1 year ago

  • 0
  • 1
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 53,240 Points 50k badge 2x thumb
The best way in terms of low tech solutions is to use a multiple choice field  with log changes enabled.

You create formula fields to hive off the information from the most recent update and use those fields in View mode on forms and on reports.

Here are the essential formulas.

Parsing Append Only Fields

so... if you have a text field set to Log Changes where the new entries act in the default manner which is to be at the bottom of the updates, here are some formuals to use to parse out the values from the most recent entry.  I am also assuming that you are logging the date and not the date and time.

Most recent value (formula text field type)

Trim(Right([my update field],"]"))

Date of most recent update (this needs to be a formula date field)

ToDate(Left(Right([my update field],"["),9))

Who did the most recent update (formula text field type)

Trim(NotLeft(Left(Right([my update field],"["),"]"),9))
Photo of jeanne

jeanne

  • 374 Points 250 badge 2x thumb
Thanks, will give that a try, and yes only need the date. Is there any examples of this method?
Photo of jeanne

jeanne

  • 374 Points 250 badge 2x thumb
I have it setting my forumla field to the last status set, but how do i get the date of the last entry for a specific status entered? thanks again!
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 53,240 Points 50k badge 2x thumb
As posted above

Date of most recent update (this needs to be a formula date field)


ToDate(Left(Right([my update field],"["),9))
Photo of jeanne

jeanne

  • 374 Points 250 badge 2x thumb
struggling with this one.  i need the date stamp of the last time the multiple choice (with log edit) of "WIP" was set.  there may have been other statuses after WIP, but i need to display Date Stamp of when WIP was selected.  thanks for your help.
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 53,240 Points 50k badge 2x thumb
OK, sorry, I missed the point about needing only for a particular status.

I think that we need to go to plan B here.  Nevermind the log field. 

I suggest using Actions. You will find that in Settings for the Table

Set up a child table to log changes to that field in the main record.  call it Status changes for status XXX

The Action will trigger when the record is saved and the status changes and the status is the special value.

Then on the relationship summarize the maximum of that field and you will have the date of the most recent change.
Photo of jeanne

jeanne

  • 374 Points 250 badge 2x thumb

thanks, actually got that working with the log field.  i am getting the date of a specific satus what is the formual to get the user name? can't seem to get that right.  this is what i am using to get date of WIP

    If(Contains([Update Status],"WIP"),
       ToDate(Left(Right(NotRight([Update Status],"WIP"),"["),9)),null)

Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 53,240 Points 50k badge 2x thumb
To get the name of the person who did the update, it should be this.

Who did the most recent update (formula text field type)

Trim(NotLeft(Left(Right([my update field],"["),"]"),9))
Photo of jeanne

jeanne

  • 374 Points 250 badge 2x thumb
At a lost.  Don't want to use forms, have a status field that has 9 choices, and will most likely be at least 7 or 8 of them as it goes through the process. for three the processes i have to store the date it was set to that specific status and for one of the status i have to record the person who set it to that specific status. I have tired log edit and using and creating a table to and using actions to put data in the table.  but with both i cannot get the specific information i need by lookup or formula to get the specific data I need.  Is this possible in grid edit?  thank you for any help or insight!
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 53,240 Points 50k badge 2x thumb
Yes, the Summary field is created in the relationship.
Photo of jeanne

jeanne

  • 374 Points 250 badge 2x thumb

You can do multiple summaries with different criteria in the relationship?


Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 53,240 Points 50k badge 2x thumb
There is no limit to the number of summary fields you can create in a relationship.

The easiest way to make the 2nd one is to duplicate the first field and change the filter criteria.
Photo of jeanne

jeanne

  • 374 Points 250 badge 2x thumb
how would i do this if i want to get the user name of the last modified by?
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 53,240 Points 50k badge 2x thumb
OK, so that is a bit more complicated with a child table.  You will need to make a summary maximum field of the maximum [Record ID#] of the status log records for that Status.

Then make a new "reverse relationship"  where 1 status log has many Parent records.  (I don't know what your parent records are called).  But them use that [Maximum Record ID#] field on the right side of the relationship.  Then lookup the user field up to the Parent.