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 to omit a record

Featured Replies

To the Forum

I want my script to omit a record where a certain field is blank and then export the results in csv format. My script below results in an endless loop.

I have elementary experience in writing scripts. Thank you for your help.

Perform Find [ Request 1: Thol ]

[ Restore find requests, Replace Found Set ]

Go to Record/Request/Page

[ First ]

Loop

If [ IsEmpty(Tr1) ]

Omit Record

Go to Record/Request/Page

[ Next ]

Exit Loop If [ IsEmpty(D2) ]

End If

End Loop

Export Records

Close... the trick to remember that after you omit a record, you have automatically moved on to the next record.

Perform Find [ Restore find requests, Replace Found Set ]

Go to Record/Request/Page [ First ]

Loop

If [ IsEmpty(Tr1) ]

Omit Record

Else

Go to Record/Request/Page [ Next, exit after last ]

End if

Exit Loop If [ Status(CurrentFoundCount) = Status(CurrentRecordCount) ]

End Loop

Export Records

Scripts like this often have problems with the very last record... they either fail to omit it, or omit the last record when it should be left in. So check it carefully before using it.

On the other hand, why not include the TR1 field being empty in your original find request?

  • Author

Beautiful, Vaughan...

Every program's scripting language is just a leetle bit different. You saved me hours.

Thanks.

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.