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 problem - creating related records

Featured Replies

Hello everybody,

I'm trying, for a set of records to create, NEW, related ones.

Briefly, I have a SHOPS file (containing 2 fields: shopID and shop name) and a second one MISSION with tasks related with those shops (having as fields missionID, shopID, product, client, aso.)

My objective is to be able to create a new mission for each shop in the current found set. I activate the "make new missions" script from a layout in the Shops file which includes a portal with related fields from the mission table.

My script looks like this:

go to record/request/page [first]

loop

go to portal row [select;last]

set field [mission::product; a value]

set field

set field....

go to record/request/page [next; exit after last]

End loop

So far, so good, even in the example file that I'll attach to the post everything works fine...

But not in the main database, where I want to introduce this feature, the only difference is that on the same layout (where I launch the script) I have one more portal. Anyway, over there, this script is mainly changing existent missions, not adding new ones.

Any idea would be very much appreciated.

Thank you in advance!

Alin

example.zip

Don't use the portal at all for this script. Use auto-create with a separate relationship and a global for missionID. See attached.

shops.zip

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.