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.

duplicate line items

Featured Replies

Hi

I have to insure that I cannot enter duplicate Line Items in a portal. Is there a simple way to do that or can I have an alert message that warns me that I have entered a duplicate?

Thanks

Perhaps the simplest way is to not use the blank portal line (allow creation of related records) as the method. Instead, create global fields for the data to be entered. In operation, the user fills out the global field and clicks and "Enter" button. The "Enter" button runs and external script in the related file which checks whatever needs to be checked and either creates a new records (which appears in the portal) or displays a message that the attempted entry is a duplicate.

-bd

You can also do this with a method called cross tab validation. I've seen the method in the book Scriptology as well as on www.databasepros.com, although I remember having difficulty finding it when I wanted it. Also try taking a look at www.fmfiles.com. I believe they have a similar, if not identical, sample file.

This question (or a similar problem) has come up a few times, so I might write a FAQ for it when I get time.

Chuck

  • Author

quote:

Originally posted by LiveOak:

Perhaps the simplest way is to not use the blank portal line (allow creation of related records) as the method. Instead, create global fields for the data to be entered. In operation, the user fills out the global field and clicks and "Enter" button. The "Enter" button runs and external script in the related file which checks whatever needs to be checked and either creates a new records (which appears in the portal) or displays a message that the attempted entry is a duplicate.

-bd

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.