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.

Small Scripting Problem

Featured Replies

I'm trying to develop the following script that deletes records from a portal (based on a self relationship) and stays in the same layout until the final record in the portal is reached, and then deletes that record and goes to a different layout. I can't get this to work:

If [Get(PortalRowNumber) = 1]

Delete Record/Request[]

Go to Layout ["Navigate" (QuestionBank)]

Halt script

End If

Delete Record/Request []

Thanks!

If you are aiming to delete only the related records why don't you try the following instead:

If [ Count(NonEmptyField in your portal TO) > 0 ]

Freeze Window

Go To Related Record(s) [Your self join table]

Delete All Records [Perform Without Dialog]

Go To Layout ["Navigate" (Question Bank)]

Halt Script

End If

Else, if you want to delete all related records, aswell as the current record what you do is enable the checkbox in between your relationship "Delete records in this table when records are deleted in the other table"... or something.

That way, if you delete record in your main TO, all related records will also be delted, making your script a lot easier:

Delete Current Record[Perform Without Dialog]

Go To Layout["Navigate" (QuestionBank)]

Goodluck,

~Genx

  • Author

That worked, 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.