June 23, 200322 yr 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..
June 23, 200322 yr Newbies 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
June 23, 200322 yr 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.
June 24, 200322 yr Author 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(?)
June 25, 200322 yr Error 100 is "file is missing" I'd start with that. Trap for it in the -error file.
Create an account or sign in to comment