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.

Commit trouble with new related record

Featured Replies

I am having a little trouble with a script that looks for a related record and if it doesn't find one, creates one by netering a value into a related record.

It works fine, except that if there is no record, it enters the serial value, but then doesn't update the record in time to show on the layout for the related record. The serial appears empty until the next time you run the script. I have even tried looping it round twice, but that doesn't work either.

Its probably something really stupid that I just can't get my head around - any ideas out there for this one.

Many thanks in advance for any hints, laughter or abuse.

Tol

If [ INVOICES::INVOICE number = "" ]

Set Field [ INVOICES::INVOICE number; GetNextSerialValue ( "GROUPS" ; "INVOICES::INVOICE number" ) ]

End If

Go to Related Record [ From table: “PARTYguests”; Using layout: “PARTY Invoice” (PARTYguests) ]

[ Show only related records; New window ]

Commit Records/Requests

Enter Preview Mode

Show/Hide Status Area [ Show ]

Have you tried the refresh window script step?

I think you need another 'Commit record' in front of the 'End If'.

  • 6 months later...
  • Author

That could be it - just the sequence of events.

thanks for the replies.

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.