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.

Set Field for Child Table

Featured Replies

  • Newbies

I have a relational database with three tables. After I create a new record in the parent table [Artists], I want to create a new item associated with this record in the Prints table.

How do I copy the ID value in the parent table and transfer it to the new record in the prints table?

In the Artist information layout, I have a script attached to a button that is called Add New Print that does the following:

Got to Layout (Prints)

New Record

Set Field [Prints:Artist_ID; Artists::ID]

It creates the new record but does not change the Prints:Artist_ID, therefore the two are not connected. Should I be using a look up value instead of a script that does the set field? Any help would be appreciated.

Thanks so much!

I've attached a screen shot of the relationships graph.

screenshot.jpg

Edited by Guest

Hi and welcome to the forums. Try this.

Set Variable [$ArtistID; Artists::ID]

Go to Layout [Prints]

New Record []

Set Field [Prints:Artist_ID; $ArtistID]

In your script you are going to the other layout but it doesnt know what to pouplate the field with because there is no related record in Artist. You ahve to temp store it in a variable or global field.

  • Author
  • Newbies

It works great now.

Thank you, Mr. Vodka! You tha man!

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

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.