girish Posted June 23, 2003 Posted June 23, 2003 Hi folks - is it possible to return a custom error page to a users browser rather than the default FM error if the user attempts to connect to a web enabled database that isn't open? Currently, a (javascript controlled?) error message "Unable to process your request because the database "********" is not open." is returned - I would like to display a customised html page. I'm using : FileMaker Pro Unlimited version 6 running on a Powermac G4, Mac OS X. Thanks Girish..
Newbies phish Posted June 23, 2003 Newbies Posted June 23, 2003 hello If you are using CDML, as opposed to Instant web publishing, you should be able to spec an error page with the -error=error.htm tag, where "error.htm" is your custom error page. hih, steve
Vaughan Posted June 23, 2003 Posted June 23, 2003 FMP 6 also includes the -ErrNum (error number) CDML tag that lets you specify an error file for a specific error code. Since multiple -ErrNum tags can be used, it appears you can specify a particular error page for each error if you so wish. I haven't used it myself yet.
girish Posted June 24, 2003 Author Posted June 24, 2003 Thanks Steve/Vaughan for these suggestions. I have implemented custom error pages using CDML before, and have also used the [FMP-CurrentError] tag to return specific error messages (I hadn't tried the -ErrNum tag before but have just given it a go as well). Unfortunately, the error returned when a database isn't open does not seem to have a number associated with it and so I can't think of a way to use these two tags when this error is returned(?)
Vaughan Posted June 25, 2003 Posted June 25, 2003 Error 100 is "file is missing" I'd start with that. Trap for it in the -error file.
Recommended Posts
This topic is 7814 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 accountSign in
Already have an account? Sign in here.
Sign In Now