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.

Detecting empty fields

Featured Replies

I want to do a Delete All Selected records script by ssetting a Select checkbo, which I think should be easy enough, but before I do the Find and Delete I want to be sure there is a Select field selected in at least one record of the displayed view, if not I want to display a message "Please select records to delete", Want would be the logic to go through the displayed list to determine that at least one record is selected?

Thanks

Make the Select checkbox work from a value list of just 1.  

Create a calculated field isTrue = 1.

Create a new TO of your table and relate it by YourTable:isTrue = YourTableNewTO::select.

 

Script for your delete button:

 

If[count(YourTableNewTO::select) = 0]

Show Custom Dialog["Please specify items to delete"]

Exit Script

Else

Go to Related Records[From table: YourTableNewTO; Using layout <current layout>]

Delete all records[]

End if

before I do the Find and Delete I want to be sure there is a Select field selected in at least one record of the displayed view

 

Assuming that "at least one record of the displayed view" means "at least one record of the current found set", you can use a summary field to count (or, if it's a Boolean field, to sum) the Select field.

 

The other option is to turn error capture on, do the find (or constrain found set?) first, then see if you have any records in the found set. You could do this in a new window, if you want the ability to return to the original found set.

 

---

Note also that marking records can be problematic in a multi-user scenario.

  • Author

Would the summary field be in the same table as the found set, not quite sure how to implement, get the general idea?

Would the summary field be in the same table as the found set

 

Yes.

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.