|
|
Clarion 6 - General
Started by GMAN at 07-29-2008 12:55 PM. Topic has 4 replies.
 
 
|
|
Sort Posts:
|
|
|
|
07-29-2008, 12:55 PM
|
GMAN
Joined on 05-02-2007
Posts 53
|
|
|
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
Joined on 10-20-2005
Posts 223
|
Re: Adding Recurring Records
|
|
|
|
|
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
Joined on 05-02-2007
Posts 53
|
Re: Adding Recurring Records
|
|
|
|
|
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.
Joined on 06-27-2006
Canberra Australia
Posts 22
|
Re: Adding Recurring Records
|
|
|
|
|
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.
Joined on 06-27-2006
Canberra Australia
Posts 22
|
Re: Adding Recurring Records
|
|
|
|
|
|
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... » Adding Recurring Records
|
|
|
|