Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

what would be the best way to copy a record to another db. I tried importing but cannot get it to work. Is there another way i can do this, so i can go to that db to look up my messages. thanks, jim

Posted

"Best" way depends on the situation, but a good way is to use a constant relationship and global fields. For the relationship, you need a calc field in each file that = 1. Make a relation and call it "One." Then create global fields that correspond to each field you want to copy. Your script would then look something like:

Set Field [gName, name]

Perform script [external, otherdb]

In the other db, the script that's called would do the reverse:

Set Field [name, One::gName]

Posted

Hi Jim,

You didn't say if this was from one FileMaker file to another FileMaker file, however by the way it reads, it appears that that is the situation.

IMHO, importing this way is the easiest way to move data between FileMaker files when the information needs to be in that file and not just seen as in a portal.

It does take a little preparation though, depending on how the field names match up. If the names are the same or similar, what is the problem?

If the names are way different, then you might have to manually go through both files (you can print the fields descriptions) and match up what fields are going to be imported into which fields.

If you are going to be importing from the same file more than once, it is probably worth the effort to write a script, once you have the import working the way you want.

HTH

Lee

laugh.gif

Posted

Couldn't one just create a new record in the other database via a portal relationship. ie:

Go to Portal Row Last

Set Fields (various, which don't need to be in the portal)

Delete Record

Pete

This topic is 7868 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.