Jump to content

Custom dialog boxes


This topic is 7822 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Is it possible to replace the dialog boxes that pop-up when deleting a record, or searching for records that aren't there, etc...?

I would especially like to replace the Delete record dialog. I know i can turn it off using the scripts, but i just want to replace it, and customize it to further dummy-proof my database.

There is a dialog box option in scriptmaker, but i can't quite get it figured out....any advice?

Link to comment
Share on other sites

There are two options:

1) "Set Error Capture (on)" when included at the beginning of a script surpresses stock error dialogs. In combination, "Status(CurrentError), the "Show Message" script step, and "Status(CurrentMessageChoice) fill in the gap. For instance, the following fragments of a find script demonstrate the use of all three:

Allow User Abort (off)

Set Error Capture (on)

Enter Find Mode (Pause)

Perform Find ()

If( Status(CurrentError) = 401)

Show Message("No records were found. Do you want to try again?") choices "YES","No"

If (Status(CurrentMessageChoice = 1)

Perform Script (this script)

Else

Go to Layout(original layout)

End If

2) Same basic thing, but use a plug-in such as Troi Dialog for more extensive diaglog box options.

-bd

Link to comment
Share on other sites

To eliminate the dialog boxes, you MUST use a script to perform the operation. For instance, to eliminate the dialog box that comes with the delete record operation, you must create a "Delete Record" script and attach it to a button. The user must use your new "Delete Record" button instead of the pull down menu or Command-E (Cntl-E) to delete a record.

There is no other way to eliminate the stock dialogs.

-bd

Link to comment
Share on other sites

This topic is 7822 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.