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.

Limiting records created through a portal

Featured Replies

I am using a portal for data entry, and would like to limit the number of records created through the portal. Is there a way to do this? [email protected]

Make the portal without "Allow creation...." and script it like this:

If [ Count ( Itemlines::BelongsTo ) < 5 ]

Go to Layout [ "Itemlines" (Itemlines) ]

New Record/Request

Set Field [ Itemlines::BelongsTo;

Get ( ScriptParameter ) ]

Go to Layout [ "Invoicing" (Invoicing) ]

Go to Portal Row [ Last ]

Go to Field [ Itemlines::ItemName ]

Else Show Custom Dialog [ Title: "Ooops"; Message: "This invoicing system allows only 5 lines in each invoice!!!"; Buttons: "OK" ]

End If

Where the button that makes you produce a new portal line gets the parameter InvoiceID....

--sd

  • Author

Thanks so much I'll try that right away!

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.