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.

Copy Data from all related records

Featured Replies

  • Newbies

Hi all, I am new to the forum here, and new to FM7, though FM user for years.

I had a question that I hope I can make simple.

I am creating a solution for a music school that has tables for FAMILIES, STUDENTS, FACULTY and INVOICES. The relations are all set nice, students to their families, for billing etc. BUT here's where I need help. I create an invoice and enter a FAMILY number. That easily pops up all the corresponding students with their info and lesson costs through a portal into the invoice.

But of course, I don't want to use that portal directly, I want to use a Line Item Table, so the invoices will not get altered in the future when student records are changed. So I have the line item DB, which I have done before, but I can't seem to get a script working that will automatically create the four or six, or whatever new records for those corresponding students. I thought I was smarter than this, but I can only get it to pull them up in value lists, like a typical line item invoice.

Thanks for any help!

  • Author
  • Newbies

Well, at least since I didn't get any replies, I didn't waste anyone's time. I figured out what I was doing wrong with my scripts.

You do have to play with things a bit because working within those Portals is a little flakey, I am doing some pasting to fields I don't even need, just to get it to work consistently.

Thanks anyway.

Not quite sure what you are trying to do.

Look into the ValueListItems() function in conjunction with a value list based on a relationship. It can be useful for contatenating related information together, but it's limitation is that duplicates are ignored and the values are always listed in alphabetical order.

There are some commercial plugins that are also useful for this that do not suffer these limitations.

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.