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.

Relookups/Auto-enter problem when duplicate record

Featured Replies

Does anyone no of a way to suppress the relookup/autoenter from happening when you duplicate a record? It would seem to me that if you want to duplicate a record, you would want an exact duplicate which isn't always the case when a relookup happens.

Maybe if you script the record creation:

Duplicate Record/Request

Go to Field ("LookupField")

Insert from Last Record (Select, "LookupField")

Go To Field ()

This will first duplicate the record and then remodify the lookup field. "Insert from Last Record" works with the last ACTIVE record, that means, you have to click into a field or do some other action on the record you want to duplicate. And I think you have to be on a layout, where the lookup field is present, when calling this script. See FM Help for details.

  • Author

Well, that's one way to do it. It would be alot easier if the lookups don't happen. It would save me the hassle of putting all my fields with lookups and auto-enters onto a single layout and writing a script to reset them. I guess I just think that if I want a duplicate, I want a duplicate.

If you don't like an additional layout, but don't mind some additional global fields:

Set Field (g_lookupField1, field1)

Set Field (g_lookupField2, field2)

  • Author

I really do appreciate your suggestions. Truthfully, I have thought of several ways to reset the fields. It's just that adding work and overhead to the app because I don't actually get a duplicate record is something I was hoping to avoid. So, the Duplicate Record function should be renamed Semi-Duplicate Record. Unless you have a file that doesn't use lookups.

In any case, thanks for the time you took to offer suggestions. I appreciate it.

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.