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.

Script to create new portal row?

Featured Replies

I want to turn off "Allow creation of portal records" for one of my relationships. This way the user cant click in the empty portal row to create new related records. I would now like to create a button that the user can click on to create a new record in the portal.

I can have the script run an external script in the related file to create a new record, but this does not show up in the protal. I guess it is because it is creating a new record in the related database file without creating the relationship. Is there a way to overcome this. Basically the relationship is based on a fields serial::serial.

LR

I ran into this problem yesterday... Here is the solution I found which seems to work reliably:

Go to portal row, First

Exit Record Request

Basically like clicking in and out of the portal.

There are a couple of methods, some of which were discussed recently. Have you searched the Forums yet?

The button in your current file should be scripted as,

copy "serial"

Perform External Script

The external script in your secondary file should be,

New Record Request

Paste "serial"

At least this is one way to create the relationship without directly using the portal.

Oh looks like I might have misunderstood the question... my solution was for "updating" the portal so as to show the most recent related records. If you're having trouble getting the relationship to work at all, then you have to make sure the related field is set, as Philland pointed out.

i often do something similar, but don't like to use the clipboard. instead, i have a global (gText) in the master file. so the new portal row script looks something like this:

SetField [gText, "recordID"]

Perform Script (External, [New Record/Request]

Enter Browse Mode

The last step just avoids the child file from popping up.

the ecternal script then does this:

New Record/Request

Set Field [recordID, "master file::gText"]

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.