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.

unique records via 2 fields

Featured Replies

  • Newbies

Newbie question..

I'm lookin at the time billing template that comes with FMPro5.5 and I would like to validate each record so that the combination of Employee ID and Week Beginning Date is unique i.e. Each employee can only have 1 timesheet for each week - no duplicates.

I tried creating a new field (calculation) that was the combo of both of these - but I don't seem to be able to make it unique.

Any suggestions, a better way perhaps?

Cheers

Jase

Well,I did face the same problem in past and realized there is no built-in feature from Filemaker which will resolve the problem. So, I implemented it using a script. At the end of filling a timesheet - user clicks a OK/Done button which does some validations. You will need to make sure that user is not able to jump to another layout though.

I am not 100% sure if there is any automated feature from filemaker which will help you to do this. I have tried it with self-join relationship, lookup etc but never got it to work. Hence took the long way of script.

Regards,

simon1663

Take a look at FileMaker TechInfo Article Number 104191: "Unique Validation of Calculation Field."

The article describes validating a calculation field that concatenates "first+last" names, but it's only a short stretch to modify the technique to what you want to do.

The TechInfo database is at

http://www.filemaker.com/support/techinfo.html

  • Author
  • Newbies

Excellent - thanks for your help guys!

Really appreciated!!

Cheers

Jase

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.