jlm Posted February 5, 2001 Posted February 5, 2001 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 ?
PinnWal Posted February 5, 2001 Posted February 5, 2001 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 -)
DykstrL Posted February 6, 2001 Posted February 6, 2001 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.
jlm Posted February 6, 2001 Author Posted February 6, 2001 Thanks to all. It's working now. Many many thanks Jean-Luc
Recommended Posts
This topic is 8696 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 accountSign in
Already have an account? Sign in here.
Sign In Now