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 copy from a portal field and then find?

Featured Replies

I have a portal. I have a button in each portal row. What I want it to do is if a user clicks on it, a field in that portal row is copied, then a find is performed in the parent file (not the file the portal is related to).

It is easy enough to to copy a field, enter find mode, paste the copy into a field, perform find. The part I am stumped by is how to have a button sitting in a portal with a script attached know to go the field in that row.

Basically what I am trying to accomplish is the field in the portal has a id name. The parent file will have a single record that has a id name that is the same. I want to click on the portal row, but instead of it going to the related record, I want it to find the record in the current file that has a matching id name as the one in the portal.

Anyone have any thoughts on this?

LR

What you are trying to do is not difficult.

In fact, the user action of clicking on the button in the portal row will make that row 'current' at the same time as it launches the script. Any scripted actions which reference the relationship that the portal is based on will take place with respect to the current row.

So the answer is that you don't have to do anything. Simply placeing the button within the portal (and the user acrion of clicking on the button within the row they want to select) will ensure that the correct related record is ustilied by the script.

This is one of FM's more elegant features. wink.gif

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.