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.

Strange: Filemaker automatically creating unwanted child records. Any ideas?

Featured Replies

Hi Everybody!

 

Running FM 12 on a mixed network.  I've discovered a really strange anomaly.

 

In a database with 200 grandparent records, 20,000 parent records, and 0 children records, Filemaker keeps automatically creating a child record associated with the first parent in the alphabetically-sorted group of parents.  When I delete the child, Filemaker automatically re-creates it!

 

The way I discovered this was as follows:

 

I have a layout which displays a portal.  The layout is set to show the children.  The portal is set to show only those children with a certain status.  This portal is established by way of a self-relationship between a global field within the child table and the status field within the child table.  When the user clicks the button to navigate to the layout containing the portal, the script sets the global field in the child table with a designated value, thereby establishing the self-relationship between child and child that fulfills the portal only with those child records that have the designated status.  This way I can set up multiple layouts, each displaying children of varied status.

 

The problem is that there shouldn't be any child records, because the users haven't created any.  However, when the user presses the button to navigate to the above-mentioned layout, thereby triggering the script which fulfills the global field, a single child record is automatically created! 

 

Thankfully only one child record is created when navigating to the layout, but I don't understand why this is happening and would like to eliminate it.  I've used this setup for many years, and have never encountered this before.

 

Any ideas?

 

Thank you!!!

 

J

Solved by doughemi

Go to solution
  • Solution

This can occur when you set a field in a child TO if the parent primary key is blank (and the relationship is configured to allow creation of records).  if the child has an auto-entered ID field, FileMaker will create a new child record, set the field, and populate the PK with the child ID.

  • 2 weeks later...
  • Author

Thanks, Doughemi : )

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.