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.

Make new record in other database

Featured Replies

What is the best way to make a new record in another database?

I want to make a button, resulting in first checking if the record doesn't allready exist, if no: copying the contents of a field from database A into a field in Database B, creating a new (related) record.

I have a situation where I have a contact database, People. Some of the People are also clients, so I want to keep additional info on them in a separate DB, CCRD.fp5 (CCRD = Confidential Client Record Database). If a person in People.fp5 is a client, I click on a button to see their client record. If a client record doesn't exist, one is created and I'm taken to it.

The CCRD relationship is just bewteen the ID in the People.fp5 and ID in CCRD.fp5. The first script is in people.fp5. The second is in CCRD.fp5.


if [isempty(ccrd::ID)]

   set field [ccrd::gCurrentPersonID]

   perform script [external: ccrd.fp5 NewClient]

end if

Go To Related Record [CCRD]







And The NewClient script is just:





New Record / Request

Set Field [iD, gCurrentPersonID]

Once you've got a related record created you can mave data between them as you need.

Dan

Make a relationship between the two db using a unique id and check the create new record box when you make the relationship and write a script using the "set field" command and attach it to a button.

Hope this helps

Lionel

Oh, I'd never thought of that outside of a portal. That's much more direct. Thanks.

Dan

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.