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.

Scripting a new record creation in a different database.

Featured Replies

I'm dealing with two different databases here for good reason, so please no advice of "just combine them into the same database". The databases are both on the same server, and are linked perfectly fine for reading data from one to the other, and referencing tables in each other. But now I've got a problem.

I've got Database AAA, currently at record X where a script will be run. I want this script to create a new record in database BBB, and copy certain data from record X.

What's the best way of doing this?

Edited by Guest

Perform Script(CreateNew; in BBB) Parameter(record X key)

CreateNew (in BBB) consists of -

New Record

Set Keyfield;Get(scriptparameter)

then

... use the backwards relationship to auto-enter the data

OR

go back to the script in AAA and use a series of

Set Field(BBB::fieldn; AAA::fieldn) statements.

You do understand that you don't need to have ANY scripts in file BBB to do this, right? You can have a table occurrence in AAA from BBB and you just go to the layout in AAA that is based on this occurrence and create a new record.

Dead right! Not thinking. : :) :P

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.