www.Inmagic.com    Inmagic Forums    Inmagic Forums  Hop To Forum Categories  Scripting    Copying fields from Primary to Secondary Textbase
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Posted
Hi all,

I have a script button that opens the Secondary textbase associated with a linked field using the Command.editSecondaryRecord() function. However, I would like to copy a few other fields into the Secondary record I am opening because both textbases have some common fields such as Title. I want to copy Title (and others) from the Primary to the Secondary.


Takin' care of business.
 
Posts: 2 | Registered: Tue August 28 2007Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
There's no *direct* communication possible from Primary to Secondary textbase when using the Command.editSecondaryRecord() feature.

However, you could open the relevant secondary record in a recordset, update it with your chosen field values, then call editSecondaryRecord(). Or, you could write chosen field values to a Store object, call editSecondaryRecord(), then pick up the Store values from the secondary record form.


Peter Tyrrell, MLIS
Senior Consultant
Andornot Consulting Inc.
http://www.andornot.com/about/developerblog
 
Posts: 179 | Location: Vancouver, BC, Canada | Registered: Thu September 20 2001Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

www.Inmagic.com    Inmagic Forums    Inmagic Forums  Hop To Forum Categories  Scripting    Copying fields from Primary to Secondary Textbase