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.

Delete Selection of Multiple Portal Rows via Script

Featured Replies

Anyone know a solid, easy way to "select" portal rows with a check box? Then run a deletion script to delete the selected portal rows?

Giving User an easy way to delete selected portal records is just one of the task I would use with this technique for. In future, the possibilities are endless, move records, mark as "complete", print, etc...

I could... set up a relationship that holds only "selected" records, access it via script and loop through records and perform task.

Anyone think of a way to do this in a better way? Maybe no additional relationship? Or some tricks to use in the script to make this run smoothly?

THANK YOU FOR YOUR HELP!

A super simple model file is attached in attempts to help illustrate my question.

My method feels sloppy, but it does work I guess.

portal_delete_test.fp7.zip

1. You should not be marking records as such, because then one user marks (or unmarks) a record for all users. Use a global field or variable to hold the IDs of the selected records.

2. Instead of a dedicated relationship, you could find the selected records (you'll need to create a separate request for each record in the list).

  • Author

1. Use a global field or variable to hold the IDs of the selected records.

2. find the selected records (you'll need to create a separate request for each record in the list).

Two great points! If you may, elaborate on how to actually do this with a little detail, that would be greatly appreciated. Thank you! :)

1. See:

http://fmforums.com/forum/topic/79122-looping-variables-stuck/page__p__369089#entry369089

2. See:

http://fmforums.com/forum/topic/47018-search-with-or-instead-of-and-with-a-repeating-global-field/page__p__219457#entry219457

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.