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.

New Record - no record number created

Featured Replies

  • Newbies

A FM application I'm using/troubleshooting has a button that calls a script that adds a new record. A subscript runs as part of this script and creates 3 related records.

When adding a new record, a FM warning pops up saying: "This field cannot be modified until RECORD NUMBER is given a valid value"

I click ok, it comes up again. Three times total. Then the script dumps me in the right field in the right layout, like I was creating a new record. But there is no record number assigned.

I think the message results from the record number not being created by FM before the 'create related records' subscript runs, which then fails three times. The scripts seem to be correct and the record number field is set up correctly (serial number, next value after a specified number, etc.) but, for some reason, a record number is not being created.

Any thoughts? Thanks.

Is "Record Number" a field in the parent file or the related files or both? OR - is it the name of a relationship you've specified?

------------------

Bruce J

Kansas City

[email protected]

  • Author
  • Newbies

Record number is a field in the parent file. All files are related by this record number field - through relationships defined. Next opportunity, I'll check the principle relationships involved to be sure theyr'e still defined properly. Other thoughts? thanks,

Ted

Sounds to me that the script isn't creating a valid value (or any value?) in the "Record Number" field. Since the value (if any) isn't valid or isn't there, you can't create related records based on that value, which is why you're getting the message three times -- it comes up when you try to create a related record.

  • Author
  • Newbies

Most definitely - seems to be the case that a new record is not being created, despite validation and the requirement that a record number exist.

Need to figure out why this script, which is identical to working one in other copies of the application, does not work here. Haven't been able to identify the problem. Thanks.

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.