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.

Does anyone have a good Parent / Child Script

Featured Replies

I found one for FM6 but it does not work very well in FM7...

What I need to do:

I would like to make a broker call log -- meaning when I am on a file (a brokers company) I want to hit add a call...this should add a space on a portal that I can type in...it should auto enter the date too...it uses the child / parent relationship...

Does FM7 have anything like this...or does anyone for that matter...:

Try something like this, it requires a global field.

Set global to serial number of parent

Go to the child

Create a new record

Set the foreign key to the global

Go to the parent

Go to the date field in the portal

Go to last row of portal

Set the date to current date

Go to the next field.

If both tables are in the same file use go to layout to move between the tables.

  • Author

ok thanks I will

  • Author

what happens if both are not in the same file?

Thanks for all of your help

It will take a script in each table. The first script calls the second. After the second script is run the first script resums.

It seems there should be an easier way of doing this. You'd think FM7 could have included something to streamline this.

(also, on the script, an auto enter date would skip the need to fudge around with the portal.)

RalphL said:

Try something like this, it requires a global field.

Set global to serial number of parent

Go to the child

Create a new record

Set the foreign key to the global

Go to the parent

Go to the date field in the portal

Go to last row of portal

Set the date to current date

Go to the next field.

If both tables are in the same file use go to layout to move between the tables.

  • Author

I will give this a try... Thank you...Do you know of any existing data bases that use this format...It is a lot easier to learn when I can look at something... if not Thank you for the help.. smile.gif

I put together a demo file. Hope it helps.

  • Author

thanks for the demo file...I will Lokks at this and try to learn it. I will write you back and tell you how it goes...thanks

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.