Jump to content

Scripting a new record creation in a different database.


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

Recommended Posts

I'm dealing with two different databases here for good reason, so please no advice of "just combine them into the same database". The databases are both on the same server, and are linked perfectly fine for reading data from one to the other, and referencing tables in each other. But now I've got a problem.

I've got Database AAA, currently at record X where a script will be run. I want this script to create a new record in database BBB, and copy certain data from record X.

What's the best way of doing this?

Edited by Guest
Link to comment
Share on other sites

Perform Script(CreateNew; in BBB) Parameter(record X key)

CreateNew (in BBB) consists of -

New Record

Set Keyfield;Get(scriptparameter)

then

... use the backwards relationship to auto-enter the data

OR

go back to the script in AAA and use a series of

Set Field(BBB::fieldn; AAA::fieldn) statements.

Link to comment
Share on other sites

You do understand that you don't need to have ANY scripts in file BBB to do this, right? You can have a table occurrence in AAA from BBB and you just go to the layout in AAA that is based on this occurrence and create a new record.

Link to comment
Share on other sites

This topic is 5774 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
 Share

×
×
  • Create New...

Important Information

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