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: 4 | 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
Director and Lead Developer
Andornot Consulting Inc.
http://andornot.com/about/developerblog
http://twitter.com/andornot
 
Posts: 188 | Location: Victoria, BC, Canada | Registered: Thu September 20 2001Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 

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