GoTigers Posted July 24, 2006 Posted July 24, 2006 Because the built in field validation causes a problem with FM Server Advanced (the error 13 problem that has been discussed here in this forum), I've had to turn off unique field validation for a field that really needs to be unique. Does anyone have a good script for validating a field as unique in IWP? Thanks!
Inky Phil Posted July 24, 2006 Posted July 24, 2006 How about setting up a self relate on that field and using the Count() function in your script to see if it already exists Phil
GoTigers Posted July 24, 2006 Author Posted July 24, 2006 I've been trying a script with that as an element, but I've been unable to make it work. Thanks for the input, though!
xochi Posted July 26, 2006 Posted July 26, 2006 Are you committing the record before you check for duplicates? My guess is that if you haven't submitted the record, the relationship won't work and you'll always get N-1 as the count of identical keys. Another way to do it might be to break up the data entry: Have an initial screen where the person enters only the info that must be unique, and have them enter that into a global field. Then script a "continue" button which checks it for uniqueness by doing a scripted Find (setting the Find field to the value of the global field they just entered). If you find matches, you can then do something sensible (like, take them to the duplicate record and have them edit it, etc.)
GoTigers Posted July 26, 2006 Author Posted July 26, 2006 I have committed the record, but the script I have, which I've customized (I believe from the FM knowledge base) has a step in it which pauses the script, and I think this is what isn't working with IWP. Thanks so much for the advice.
xochi Posted July 27, 2006 Posted July 27, 2006 Yep. Click the "show web compatibility" checkbox in the script editor, and it will alert you to script steps (or script step options) that are not IWP friendly.
GoTigers Posted July 28, 2006 Author Posted July 28, 2006 When using FileMaker Server Advanced and IWP, when you have field validations turned on, after a time, noone can log into any hosted databases. They instead get "error 13" when they attempt to log in. FIleMaker is aware of this "bug." I don't know whether it's fixed for FM Server Advanced 8.5 or not.
GoTigers Posted July 28, 2006 Author Posted July 28, 2006 Yes, this is a great feature to instantly identify IWP compatible script steps.
Recommended Posts
This topic is 6962 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