February 5, 200124 yr 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 ?
February 5, 200124 yr 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 -)
February 6, 200124 yr 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.
Create an account or sign in to comment