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.

Script Skipping Lines

Featured Replies

Hi,

I have a script that is acting erratically - usually it works as designed but randomly and infrequently it will fail to execute a Duplicate Record script step. I have read all prior posts on this issue but am still confused as to what is going wrong. Here is the start of the script.

Enter Browse Mode []

Beep

Show Custom Dialog ["Create a duplicate?"]

If [get(lastMessageChoice)=2]

Exit Script []

End If

Set Variable [$$BidID; Value:BIDS::Bid_ID]

Set Variable [$LaborRate;Value:BIDS::Labor_Rate]

Set Variable [$Percent; Value:BIDS::PercentToInvest_Default

Duplicate Record/Request

Set Variable [$$BidIDNew; Value:BIDS::Bid_ID]

If[$$BidID=$$BidIDNew]

Show Custom Dialog ["Duplication Failed...."]

Exit Script[]

End If

...

This file has no access restrictions. None of the fields are set to require verification.

The system is multiuser but I can't figure out how that would matter.

I have a theory that this only happens if the script is triggered while Filemaker Server is performing a scheduled backup. Any thoughts on this.

I have had similar issues elsewhere in system with go to layout script steps failing. Often this occurs if I am under the hood defining fields, but it also seems to be tied to the server backup schedule.

We are using 8.5 on mac clients, and server 8 on server on MacPro.

Thanks,

-Ted

I use server 8, and FM Pro 8 Advanced and have noticed that the "go to layout" script step will often fail (and go to the first layout in the list) when I have the "Define Database" window open. Perhaps the same thing is happening with the "duplicate record" script step for you?

  • Author

Thanks for the reply Dan.

I have certainly seen the go to layout script step fail with the define fields window open.

Unfortunately the duplicate records issue has happened on days when I have not been here, and I am the only one with admin access to edit the system.

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.