Jump to content
Salesforce and other SMB Solutions are coming soon. ×

"Modified by" history list


jlf

Recommended Posts

I'm trying to create a list that will track a history of users that have modified any particular record.

I've got a set of working fields now that display username, date and time after modification.

Problem is, they update each time in the first repeating field only.

How do I save the last user then move down the list?

Link to comment
Share on other sites

a) Ditch the repeating-fields approach. Repeating fields are an abomination in the eyes of God and are responsible for social corruption and bad breath and stuff like that. You should never store actual data that you're going to need to manipulare or search on or sort within repeating fields. I'm not kidding.

 

 

b) I assume you have a Modification TimeStamp field. If not, make one.

 

Then...

 

Create a text field, let's call it "Modification History", with an auto-enter option like this:

 

Let (pilcrow = "¶";

Evaluate ("Modification History & pilcrow & Get(AccountName)" [Modification TimeStamp])

)

 

 

Set the field's auto-enter option so that it *DOES* replace existing field values.

 

 

That handles your names.

 

Repeat for "Mod History TimeStamps", deploying a similar Evaluate() formula except inserting Get(CurrentHostTimeStamp) in lieu of Get(AccountName).

 

That handles when it was modified, and the timestamp of a given modification will appear alongside of the modifier when you position the fields next to each other.

Link to comment
Share on other sites

  • 7 months later...
Let (pilcrow = "¶";

Evaluate ("Modification History & pilcrow & Get(AccountName)" [Modification TimeStamp])

)

 

Set the field's auto-enter option so that it *DOES* replace existing field values.

 

When I copy and paste the formula it is saying " an operator is expected here"

Link to comment
Share on other sites

OK I will do some actual testing. I must have made some oddball error. I know it works, generically speaking.

 

EDIT: Ok I was having an off-day. Sheesh. sorry.

 

Use this formula in your auto-enter calc formula instead:

 

 

Case (Modification TimeStamp;Modification History & Left ("¶"; Length (Modification History)) & Get(AccountName))

 

 

 

as before, DO uncheck the "do not edit existing values" checkbox.

Link to comment
Share on other sites

  • 11 months later...

I ran across this solution, and tried to implement it into a DB I am developing for a Non-Prof in LA.

 

I created a Modification_History field as a text field with an auto enter value of

Case (Modification_TimeStamp;Modification_History & Left ("¶"; Length (Modification_History)) & Get(AccountName))

 

I also created a Modification_TimeStamp field

 

It does not work, and I have obviously done something incorrect. If I make a change the field remains empty.

 

You state that "as before, DO uncheck the "do not edit existing values" checkbox." but I cannot find a place that shows this option.

 

Can you help me?

 

TIA

 

John Chamberlain

Link to comment
Share on other sites

  • 1 year later...

Jabert-

I know it's been over a year but in case anyone else checks this out in the future, the following worked for me with FM Pro 10:

 

1) mod_timestamp field (as explained above)

2) Mod_history text field with the following auto-enter calc:

 

mod_history & "¶" & mod_timestamp & " " & Get(AccountName)

Link to comment
Share on other sites

This thread is quite old. Please start a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

Terms of Use