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.

deleting portal records

Featured Replies

Another problem. Say I have a parent record. I then have a portal with multiple records for children entry. I then have a button that should do the following in a script. Delete all the portal records for this particular parent and then create a number of portal records for this parent. Example: Parent Jones, children Fred and Agnes. Have a screen that shows the parent - Jones - record with all the basic info. Then I have a portal that has two records, one for Fred and one for Agnes. For whatever reason, I want to, with a push of a button in the parent record, delete Fred and Agnes and create children records for Pat and Mike. This is a simplification of what I really need to do. What's the easiest way?

Talking in hypotheticals sometimes leads down the wrong path. Could you use real-data examples, bcs you'll get much better advice.

Set Variable [ $p; Get ( ScriptParameter ) ]

SEt Variable [ $parent; parent::pkParentID ]

If [ not IsEmpty ( child::pkChildID ) ]

Go to Related Records [ Show Only Related ]

Delete All Records

Set Variable [ $k; 1 ]

Loop

Exit Loop if [ $k > VAlueCount ( $p ) ]

New Record

Set Field [ child::fkParentID; $parent ]

Set Field [ child::name; GetValue ( $p; $k ) ]

Set Variable [ $k; $k + 1 ]

End Loop

Go to layout [Original]

Else

Show Custom Dialog ["no children"]

End If

Then send the names as a list via a script parameter.

  • Author

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

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.