Newbies RicT Posted September 12, 2001 Newbies Posted September 12, 2001 How on earth do access the data in a -max field. ordinarily it is formname.fieldname.value="5" however search.-max.value="5" doesn't work. Thanks in advance. Ric
Anatoli Posted September 12, 2001 Posted September 12, 2001 What it does Specifies the maximum number of records that should be returned per page. Value is A number from 1 thru 2147483647, or the word "All". The default value is 25. Syntax example(s) Specify the maximum number of records using a link <a href="FMPro?-DB=Contacts&-Format=format.html&-Max=10&-FindAll">First 10 Records</a> Specify the maximum number of records using a form action < form action="FMPro" method="post"> <input type="hidden" name="-DB" value="contacts.fp5"> <input type="hidden" name="-Format" value="format.html"> <input type="hidden" name="-Max" value="10"> <input type="submit" name="-FindAll" value="First 10 Records"> </form> I've put space after the <
Vaughan Posted September 13, 2001 Posted September 13, 2001 Just to make the fact explicit: the -max tag has nothing to do with Javascript or Java, it's CDML. Have you downloaded the CDML Reference database from the FileMaker web site? They're all in there.
Garry Claridge Posted September 13, 2001 Posted September 13, 2001 The "-" in "-max" may be causing the problem, so try: document.formname.elements[x].value = 5 "x" is the xth <input> element; they start counting at 0. This should work. All the best. Garry
Newbies RicT Posted September 13, 2001 Author Newbies Posted September 13, 2001 Thanks garrycl I will try that, I was hoping not to do it that awy because if I extend the form it will change. Any how, at least it will work!!!
elvis_impersonating_penguin Posted September 19, 2001 Posted September 19, 2001 the javascript syntax for referencing a field with an irregular name (such as a name with a space or a hyphen) looks like this: search["-max"].value [ September 19, 2001: Message edited by: bman ]
Recommended Posts
This topic is 8465 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