Normal Topic Create Natural Linked Subrecords (Read 549 times)
CapitalG
Full Member
Members
***
Offline



Posts: 143
Location: Phoenix, Arizona
Joined: Mar 4th, 2003
Create Natural Linked Subrecords
Jun 25th, 2008 at 10:22pm
Print Post Print Post  
I am currently trying to create a naturally linked subrecord using XResultSetCreateNewRecord.  My program gets a Parent Record Set and then uses @XResultSetSubSet to go through each child record to calculate Interest earned for each Child.  I then would like to create a new child record for that same Parent record.  I can create a new child record with XResultSetCreateNewRecordvCRS).  The problem is that it is not linked to the Parent.   What is one way to accomplish this? Do I need to follow the creation of the record with @XResultSetReparent?  Thanks for your help.
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Create Natural Linked Subrecords
Reply #1 - Jun 26th, 2008 at 12:19am
Print Post Print Post  
CapitalG wrote on Jun 25th, 2008 at 10:22pm:
Do I need to follow the creation of the record with @XResultSetReparent?

Yes.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
CapitalG
Full Member
Members
***
Offline



Posts: 143
Location: Phoenix, Arizona
Joined: Mar 4th, 2003
Re: Create Natural Linked Subrecords
Reply #2 - Jun 26th, 2008 at 7:59pm
Print Post Print Post  
Thank you.   It worked great.
  
Back to top
 
IP Logged