Welcome to Clarion Community Sign in | Join | Faq

Clarion 6 - General

Started by GMAN at 07-29-2008 12:55 PM. Topic has 4 replies.

Print Search
Sort Posts:    
   07-29-2008, 12:55 PM
GMAN is not online. Last active: 10/24/2008 1:10:56 AM GMAN

Top 10 Posts
Joined on 05-02-2007
Posts 53
Adding Recurring Records
Reply Quote
I am stuck ... I am creating a Recurring Entry feature and have designed the data form for recurring entries but can not get the new record to ADD.

Using 6.3 Legacy. Recurring parameters are kepth in a seperate file linked to the record to be replicated. That all works fine. So, I am editing a record (to be replicated), I check off a Check Box that indicates the record staus as closed, and now what? I can't seem to find the correct Embed point that does not confuse the currently open record with the new record to be created. My ADD just results in changing the data for the originally edited record.

Should I do it on the browse Change Button? Or what - m e = l o s t !!
   Report 
   07-30-2008, 1:26 PM
Russ is not online. Last active: 10/18/2008 7:50:29 PM Russ

Top 10 Posts
Joined on 10-20-2005
Posts 223
Re: Adding Recurring Records
Reply Quote
Open the update record on disk extension (or Action tab on any of the 3 edit buttons). Press Messages and Titles. Change "after successful insert" from the default "return to caller" to "Insert another record".

It will behave exactly the same as adding a new field does in the Clarion IDE and data dictionary.
Russ Eggen
www.radfusion.com

   Report 
   08-04-2008, 12:23 PM
GMAN is not online. Last active: 10/24/2008 1:10:56 AM GMAN

Top 10 Posts
Joined on 05-02-2007
Posts 53
Re: Adding Recurring Records
Reply Quote
thanks for the reply Russ. What I am trying to do is this:

I don't want to do non-stop adds to a file, but rather I want to automatically add another record to the file right after a record in the file is closed. The added record will mostly contain the same values for all fields, except for a few minor differences. This should all happen without user input.

The problem with non-stop adds is that it doesn't stop and would require user input of some sort for the new record.

I am now doing it from the browse 'after the update procedure returns' embed and am using two global variables to carry data, but that seems so clumsy.

Any better ideas than mine?
   Report 
   08-04-2008, 3:18 PM
Steve B. is not online. Last active: 11/5/2008 12:48:00 PM Steve B.

Top 25 Posts
Joined on 06-27-2006
Canberra Australia
Posts 22
Re: Adding Recurring Records
Reply Quote
You can place your code in the form's TakeCompleted embed. TakeCompleted is called on a sucesful insert.
Steve B.
   Report 
   08-04-2008, 3:22 PM
Steve B. is not online. Last active: 11/5/2008 12:48:00 PM Steve B.

Top 25 Posts
Joined on 06-27-2006
Canberra Australia
Posts 22
Re: Adding Recurring Records
Reply Quote

Bare in mind that TakeCompleted is also called on a succesful update so if you want it to fire only for inserts you might want to wrap the code in:

if SELF.OriginalRequest = InsertRecord

  ...

end

You could also add the code as a trigger in the dictionary.

 


Steve B.
   Report 
Clarion Communi... » Clarion » Clarion 6 - Gen... » Re: Adding Recurring Records

Powered by Community Server, by Telligent Systems