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.

how to prevent duplicates items on portal ?

Featured Replies

Hello , i have a invoice solution and i want to prevent duplicate the items products on the same invoice portal. 

for example if i have a product called " 2525 " and then im trying to add the same "2525" shows me a custom dialog to stop .

i use global fields with a button script to add items to the portal .

please let me know how to resolve this, I've been trying many ways with no luck 

thank you 

 

 

You should try to leverage the field level validation settings to handle this condition.

If you have built a proper invoicing solution then you should have an invoice line items table that knits together invoice id, product ids, quantities and the like.

the invoice line items table is the right place to put the unique, validate always, and don't allow user to override.validation.

I would create an auto enter calculation that concatenates the invoice id and the product id and drop the validation on that.

This method means that anywhere the invoice line item::product id field is expressed on a layout it will be validated if the value is changed.

Another method that not safe for your data because its tied to the UI is to use an onObjectValidate script trigger on the layout object you want to control.

Because the OnObjectValidate script trigger is a PRE event trigger you can cancel the event that triggers the trigger by returning False with the Exit script step i.e. Exit[False]

http://www.soliantconsulting.com/blog/2015/05/filemaker-14-script-triggers

Edited by Kris M

  • 5 weeks later...

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.