Jump to content
Server Maintenance This Week. ×

Simple Copy - Paste


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

Recommended Posts

My problem is surely quite simple, but I am a newbie at scripting.

Here it is: I have two files: main and second, and a simple relationship on one field. A have another field with the same name on each base. I have a portal, on main db, with a button to go to the second db on the related record, select a field (container with graphic), copy to clipboard, select field to main db, paste picture in it.Manually, everything works fine. When I script it, it doesn't work.

Where is the trick ?

Link to comment
Share on other sites

Make sure that when your Script tries to "Copy" a field, that field is on the current Layout. Similarly, make sure the Layout you wish to "Paste" into, is the current one designated by the Script.

Goto Layout(Graphic Container)

Copy(Graphic)

Goto Layout(Destination)

Paste(DestinationField)

or something like that...

Hope that's helpful.

Later ???-)

Link to comment
Share on other sites

If you already have a relationship setup, why not use 'set field'?

Set Field [Field1 = Otherdb::Field1]

You can also use global fields to push data from one file to another, then use Set Field to move that data from the global to the particular field in a particular record.

Link to comment
Share on other sites

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