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.

Creating new related records in a portal related to a parent record that is locked.

Featured Replies

  • Newbies

I have set up a Orders Tracking database which enables vendors to create an modify records on both files (Orders, Items)until a field (Invoice Nr)is filled up, thus locking that particular record and the Items in the portal. Vendors are still able to create new records and modify those that have an empty field "Invoice Nr". So far so good, if not for the fact that they can create new records in the portal. Is there something like a Portal Property that lets you create new records conditionally ?

You can create portals conditionally via script. To stop portal records from being created when user clicks on the "open" portal row, set up your relationship by making sure that the option for "Allow creation of related records via this relationship" is UNCHECKED. This will allow you to set up a conditional script for creating the related records.

if [isempty (Invoice Nr)]

Custom Dialog ["You must first..."]

//here you can give the user the option toinput the required fields using the "input Fiedl" tab in the custom dialog window. If you use the nput field, you will have to use another if statement to check what the user decided to do, ie, if (get (lastmessagechoice) = 2 exit script else perform another script step etc...

Exit script []

Else

Go to Layout []

New record

Set Field [invoiceID; get (scriptparameter)]

Go to related record

Go to portal row [last]

End if

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.