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.

Making script, copy fields from one table to another

Featured Replies

  • Newbies

In my database I have a basic contact mangement in one table and an invoice in a related table. Currently I go to the invoice form and select my customers name from a drop down menu. How do I right a script that will copy the information from a field in the contact management, open a new Invoice and insert that information in the appropriate field? Any help would be appreciated.

Russ Douglass

Russ,

There are a few different ways to skin-this-cat so be aware that this is not necessarily the best method but may be the easiest to explain.

I'm going to assume that both tables are in the same file.

Create a script called something like "New Invc From Contact". Have it do something like this:

Go To Layout (your invoice layout)

New record

Set Field [ContactID; Get (ScriptParameter)]

Now create a button on your contacts layout. Bind it to the script above. In the Optional Script Parameter box enter your ContactID field.

Now when you push the button your ContactID will be passed to the new invoice via a script parameter.

Please be aware that I'm going from memory here. I may have the syntax of things wrong and forgotten a step or two but this is the general idea.

  • Author
  • Newbies

Thanks Ted, That worked perfectly!

Russ

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.