Skip 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.

Having two fields with no duplicated data

Featured Replies

Hi all,

We have a table called FMRI

There are two fields that we would like to set as semi unique value:

1.Subj_num

2. FM_subj_num

For both fields I setup Validation “Not empty”

What we like to do is, prevent users from creating duplicated record with the following fields:

subj_num and FM_Subj_num .

Such as:

In ideal situation we would like it such as:

Record 1: subj_num = 2 and FM_SUBJ_NUM = 3

Record 2: Subj_num = 10 and FM_subj_num = 3

But if users create two records like this then inform users that there is a duplicated subj_num and FM_subj_num already exist in database:

Record 1: subj_num = 10 FM_SUBJ_NUM = 3

Record 2: Subj_num = 10 FM_subj_num = 3

Please advise,

Thanks in advance,

Abrahim

You could define a third field of type Text and set it to auto-enter (replacing existing value) a calculated value =

Subj_num & "|" & FM_subj_num

Set the field's validation to Unique, Validate always.

  • Author

Hi there,

I did set new field called GFM_Num type Text and set it to auto-enter (replacing existing value) a calculated value =

Subj_num & "|" & FM_subj_num

Set the field's validation to Unique, Validate always.

Now when I go enter some data in Subj_num field and leave the feild, I get the following error:

“Subj_Num” is defined to contain existing value only. You must enter one of the existing values.

Any idea?

Thanks,

A

  • Author

Never mind.

The existing value was selected so I just deselect it.

All is working well!!! :D

Thanks,

A

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.