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.

Avoiding duplicate

Featured Replies

Hi all,

I am creating a portal and from that portal I want to populate records of another table.

I am doing this with set variable and set field.

The problem is that if I click more than once the button on the portal row, the script create duplicate records.

Ideas to avoid this duplication?

you could perform a check to see if the record exists first with a find as part of your script...

  • Author

Thanks,

can you give an example? I am actually doing this with a loop function. The problem I have is that after the loop I end up on the last record, not on the current onne.

I am also trying with:

set variable [$ITEM; field]

Go to find mode

set field [field;$ITEM]

perform find

if [field<>""]

Exit script

Does not work...

A Loop? Okay before we get into a specific solution, please explain what the purpose is here...

First you state that you have a button on a portal row that creates another record in separate table ( which I dont quite follow why to begin with). Then you now state that you need a loop.

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.