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.

Validate Text in all Records by Checking Against a List

Featured Replies

I have a report. One of the fields in this report is EmployeeName, which is auto-populated by the system which generates the report. This field contains user IDs pulled from employee accounts on other in-house systems. There may be some variety. For example, John Doe might sometimes appear in the report as "John Doe," and at other times "JD.." or "jdoe001".

I need a means of maintaining a list of employee names and their various aliases. I suspect a table is more appropriate than a list. This table would contain two fields: EmployeeName and __kp_Alias.

Then I need a script that will systematically check the contents of EmployeeName in all records, and substitute aliases with actual employee names.

I am relatively new to FM, enough that I have built a few simple scripts, but I have no idea where to begin with this challenge. Can someone point me in the right direction?

If the Employees table contains two fields, CorrectName and Aliases, and in the Aliases field you have a return-separated list of each employee's various "names", you can then define a relationship as:

YourTable::EmployeeName = Employees::Aliases

Then place the CorrectName field on the layout of your table (make it non-enterable, to prevent accidental entry).

Note that there is an assumption here that no two employees share an alias.

  • Author

Wow, I had no idea FM could parse lists like that! Thanks.

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.