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 Not Working (finding empty records)

Featured Replies

I was running this script yesterday, and I could have sworn it was working... now it doesn't.

Show All Records

Go to Record/Request/Page {First}

Loop

  If [isEmpty {Comic::Notes}]

    Omit Record

  End If

  Go to Record/Request/Page {Next; Exit after last}

End Loop

Show Omitted Only

I want it to find & display all records where Comic::Notes is empty, but it doesn't seem to find everything, and occasionally finds things it shouldn't.

Any ideas?

Edited by Guest
clearer subject

Try this simpler method of finding empty fields.

Go to the layout with the notes field, enter find mode. In the notes field while in find mode, type the equal sign "=" without the quotes and this will find all the empty fields.

Now go to scriptmaker, and use:

Perform Find []

and click on retore and your script will appear as:

Perform Find [Restore]

where restore is comic::notes:[=] in the specify find request window.

You can then set up error capture.

Edited by Guest

  • Author

Thanks for the quick reply!

So that works like you said, but what if the Comic::Notes field was a value list, and the only way to enter information in the layout was through a pop-up list? (because then I can't enter the =)

[edit]

Also, what if Comic::Notes was a number? Then entering the = in the Find view won't work.

Edited by Guest

  • Author

Also, suppose I'm viewing a layout which shows, say, a Member table and related info from a Roles table in a portal. So we have

Member(ID)

Roles(ID, memberID)

as our schema. How would I find all Member records that don't have an associated Roles record? I was trying to use the script above to do this -- i.e. If [isEmpty{Roles::ID}]

  • Author

Well, what do you know... apparently Omit Record will advance to the next portal. That was my problem :).

Yes, omit record makes the subsequent record as a current record. Hence by using go to next record after the omit record, you would not be able to check all the records.

Your script should be

show all records

Go to Record/Request/Page {First}

Loop

If not [isEmpty {Comic::Notes}]

Omit Record

else

go to next record()

End If

if(status(currentrecordnumber)=status(currentfoundcount))

If not [isEmpty {Comic::Notes}]

Omit Record

End If

exit script

end if

End Loop

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.