Jump 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.

Featured Replies

Please refer to the attached, in particular the highlighted area.

What I want to do is enable users to delete all records (without using the Delete All Records command in the Records menu) but leave at least one record remaining in the table/layout so they won't panic when they see all the fields have disappeared for some strange reason after deleting all their found records.

Therein lies the problem: as scripted, all the records will be deleted in the found set--save one--but that's no good since you want to delete all the records in the found set but retain the records _not_ in the found set.

...and, if you have only one record left in the table, found set or not, the user shouldn't be allowed to delete it.

If I could get some guidance here I'd appreciate it. One possibility for an answer is that if FoundCount=0 after all records have been deleted then a new (blank) record would be generated in the next script step...but that would only work if the found set consists of all records.

ARRRGGGGH!

TIA for your help!

Rich

script_mess.png

Are you familiar with the Get (TotalRecordCount) function?

  • Author

*BLUSH*

Now I am.

Thanks. I've attached a revised version of the script for others' edification.

As an aside, I was going to entitle the Custom Dialog window with "DELETE REQUEST ABORTED" but on second thought changed it to "DELETE REQUEST CANCELED", instead, because some people may find the word, abort, offensive...the same people who get upset when little Johnny or Jane come home with their test marked up in red pencil or ink because red supposedly denotes anger or hostility.

I tell ya, being a politically-sensitive developer is...well...I'll be good and will step off my soapbox now.

script_mess.png

some people may find the word, abort, offensive...

LOL, this reminds me of someone who objected to the terms "master" and "slave" when referring to synchronizing two clocks.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

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.