Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Replacing the content of the field

Featured Replies

Hi Everyone,

We have a field called "Log History" in every record where we basically store the EmpId of the user with change details, whenever any change taken place. For example, content can be like "

"

Emp 502706627 on 5/15/2018 9:44:48 AM
Emp 504384332 on 5/15/2018 9:44:45 AM changed Project status from  Active to Parking Lot
Emp 501234627 on 5/15/2018 9:37:05 AM
Emp 501234567 on 5/15/2018 9:32:27 AM
Emp 502673233 on 5/15/2018 9:32:23 AM changed Project status from  Active to Parking Lot
Emp 504358927 on 5/15/2018 9:31:49 AM
Emp 5027090927 on 5/15/2018 9:31:34 AM changed Project status from  Active to Parking Lot
Emp 502706627 on 5/6/2018 7:15:33 AM
Emp 502343447 on 5/3/2018 10:21:07 AM

"

Basically we would like to create a script that will replace EmpId with Email Id. 

Project and Employee table are different.

Any help will be highly appreciated. 

Regards,

fmbug

Edited by fmbug

I'd suggest moving these log entries to a separate audit_trail table, with each entry a record.

Are you asking to substitute the "Emp 502706627" value in this text field with the user's current email? Or, are you asking to start populating the employee's email in this field going forward?

  • Author
7 minutes ago, bcooney said:

I'd suggest moving these log entries to a separate audit_trail table, with each entry a record.

Are you asking to substitute the "Emp 502706627" value in this text field with the user's current email? Or, are you asking to start populating the employee's email in this field going forward?

I want to start populating the employee's email in this field. I  have corrected the sequence.

Not sure what the obstacle is. How do you know the employee ID?  I would think you query the employee table and store it in a $$var on startup. So, switch that $$var to his email. 

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.