There is at least one more option.
Create a layout "EntryForm_CreateRecord" containing nothing but
global fields. One global per actual data field.
On this layout you place some buttons, Save, Cancel and what other
buttons you need.
On the original layout you place a button "Add record"
This button connects to something like the following script:
#Script CreateRecord#
select window "Create record"
If Get(LastError) is not 0
Open window "Create record"
End If
Goto Layout "EntryForm_CreateRecord"
Loop
Pause/Resume script
Exit loop if all fields contain data
Display message "You have not finished entering data into all fields"
End loop
Create record
Move data from globals to actual fields using set field commands
#Script Cancel#
Close current window
Halt script
It should be possible to achieve a similar effect by using the new
commit record command along with a few more but I have not tried this
method well enough to comment on it.
Kind regards
Hans
On 18.9.2007, at 12:05, Ron wrote:
Just about what I was thinking, but a little more complete!
Thanks.
Ron
-----Original Message-----
From: FileMaker Pro Discussions [mailto:FMPRO-
[EMAIL PROTECTED] On
Behalf Of Bruce Herbach
Sent: Tuesday, September 18, 2007 12:26 AM
To: [email protected]
Subject: Re: Cancel a data entry process
You might try creating a button with the Button Setup of Revert
Record/request. If you don't want a dialog select the No Dialog box.
I just completed a fairly large DB with a number of data entry
screens. For
the most part I didn't bother with this button. I provided buttons
for New
Record, Save and Delete. If the clicked anywhere in the frame
other then a
field or a button a dialog box pops up "Save this Record" with the
options
of Dont' Save, Cancel and Save. Don't save returns to the last
saved record
( essentially Revert Record/request). Cancel let's then go back to
data
entry and save lets them save the new record.
Good Luck
Bruce
On Mon, 17 Sep 2007 13:10:33 -0400, Ron <[EMAIL PROTECTED]> wrote:
It seems to me that the only way to cancel a data entry process -
that is,
part of the way thru the layout, is to Delete Record.
Am I missing something? Is there another more intuitive way to do it?
Ron Carr