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.

Problem with New Record Request

Featured Replies

Hello,

To give a little background on what I doing, I am developing a database to track alumni who have started companies. The alumni and companies each have their own table and I created a many to many relationship with a portal on the alumni layout that displays the company information.

On this portal I have a button that opens a new window so that a user can insert a new company. This is needed so that they do not need to switch back and forth between company and alumni layouts. The script for the button is as follows:

New Window

Go to Layout [New Company]

New Record/Request

Go to field [Company Name]

The problem is the following. I need the new record/request call so that the user can enter in information for the new company; however, this call not only makes a new record in the pop up window, but a new record in the alumni layout. This creates a duplicate entry for any alumni that has a new company. How can I avoid this? Thanks for all the help,

Dan

Edited by Guest

Post a copy of your file or relationship.

Check that the New Company and Alumni layouts *really* point to the correct table occurrance.

Also, do you have any event-triggering plugins in operation? I ask because the Ne Record step can only make one record in one table, unless something else is being caused to happen.

  • Author

Thanks for the help. I just started using FMP about 2-3 weeks ago, so I am still very new and do not know all of the nuances yet. Thanks again for any help you can provide. - Dan

Alumni_Company_Database.zip

Your "New Company" layout is showing records from your Personal Information table but with fields from the related Companies table. So the New Record bit makes a new Person record, while typing in the Company field on that layout makes a new Company.

If you just need to add a Company to an Alumni record without one, forget the script and popp window and allow direct entry into the Company area. That will create the required related records.

If there will be more than one Company per Alumni, change the popup window layout to be based off of the Companies table. Change the script to capture the id of the person and set that in the Join table after creating a new record. Currently you have no way of showing an Alumni with more than one Company though.

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.