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.

Featured Replies

Hi everybody! I've been browsing this group for quite a while and I've always found lots of useful information. I still consider myself to be a newbie, though. Hence my question:

I have a database where one of the fields describes a filename fpr a jpg-file. This field is made up of parts of other fields in the same record (category, subcategory, date, etc.). So I use a calculation to generate this filename. The filenames can look something like "ALIBEC01REF010204.jpg" Is there a way I can check that the generated name is unique? If I choose the field type to be unique, I get lots of errors while entering the information. Can I validate the field? Any help on this matter would be greatly appreciated!

Per-Otto

Mexico City

I Per-Otto,

If your calclulation is indexed...

Create a global text field. Create a self-join relationship that has the global text field on the left and the calculation on the right. Create a number calculation that looks like:

Count(self-join relationship::filename)

When you create a new record, insert the candidate filename into the global - if the filename already exists, your Count calculation will show a positive value and you can act accordingly.

  • Author

Thanks! One problem, though... the number calculation, should it really look like count(sjrelation::filename)? or should i replace the "filename" with a fieldname?

Yes...I was presuming that your field name might actually be called FileName.

  • Author

Thanx! It seems to work, I get instances, however, when my field dupecount, which holds the count(ctrack::value) already has a 1 as a result, even though I'm working with the first record of the database (the db is otherwise empty). Is this an error or should I do a check for the case when dupecount>1?

Thanks so much for your help!

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.