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.

Locking Portal Access

Featured Replies

Hello

My (grossly simplified) situation is this:

I have two tables called Apples and Oranges. They are linked properly using one field. Apples is the main table with records from Oranges displayed in a portal.

Apples can be locked to prevent editing or deletion via scripting and the access in the Accounts & Priviledges setup.

When this occurs, there is a script that also enables the Oranges records in the portal that prevents them from being edited or deleted. So far so good.

My problem is this:

Creation of the records in Oranges occurs from the portal on the Apples layout. Once the Apples record has been locked from editing (and at the same time the current Oranges records as displayed in the portal), how do I prevent creation of further records in Oranges?

I hope this makes sense to someone.

How are records created in oranges, by direct entry with allow creation of records checked in relationship setup or by a script that creates and attaches the the child record to the portal view?

If 1st method is used your goal will be most difficult to achieve. IMHO the 2nd method is better because it offers more control of the record creation process and would require only a few script steps in the new record script to accomplish your goal. To do this simply make the new record step a condition of a true if statement as follows.

If (isempty(Apple:RecLocked))

New Record/Request

Setfield (orange:foreignkey ; Apple:Key)

else

Message "Apple record is locked, cannot create orange"

endif

HTH

Tim

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.