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.

Lookup - one portal to another?

Featured Replies

I have a script in fileB.fp7 which creates a new record in t_sessions and populates 7 fields using a lookup (from a table in fileA.fp7).

Also on the layout is a portal, which shows related records from t_songs (another table in fileB.fp7).

When the script runs, I also want to use a lookup to populate the portal with data from a portal in fileA.fp7. How can this be done?

Hope that makes sense; Novice developer here.

Many thanks--

Seems like you're really just trying to do a data transport. You can do this in a number of ways but the way that it's generally done is thus:

- Make enough data only layouts for all the tables that you're working on. These will be blank as all heck... just fields, generally... no portals.

- Have the script go to data layout 'A' and grab all the data that you want to transport into variables. If there's related data that you need, use 'Go to Related Record' rather than trying to traverse portals.

- Have the script go to data layout 'B' and use setField to populate all the correct data.

This is the basic technique. There *are* ways to use portals for this but I've found this method very speedy and extremely reliable.

Honestly, every time I add a table to the DB, I make two new data layouts. One has the uncalculated/unsummarized data only for the times that I need to just go in and change the data, the other has all the calcs (no summaries) so that I can use that one when I have to. Calcs are expensive so when doing transports, I really only want to grab them when I have to.

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.