Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

Copy ID from one portal/relationship -> create 2nd


This topic is 7521 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

In the good old days of FM6, I would have used a script in the second file to facilitate this. However I'm now trying to figure it out in FM7.

Attached is a simple db with a few tables. Essentially there is a list of trades and services that can be selected. This is in a seperate file as apposed to an included table.

Upon selecting the category of trade and service, I wish to click on the trade, and have that copied (not just referenced) to the portal above in a new record.

Any suggestions?

OPENME.zip

Posted

LOL - my brain don't work too well after a night of drinking....

The solution:

Script in main file:

Set field TEMP --> Get ( PortalRowNumber )

Set field TEMP --> Trades::TradeID

After that, it's easy to create the second entry. The trick was revealed in that in order to get the TradeID there needed to be reference to the record, which is obtained by the process of getting the PortalRowNumber....

SG

This topic is 7521 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.