Re: Linux Beta4 problems with multirecord returns

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 32243
interpreted = N
texte = Um, my [max] is a form variable used as a parameter to a search, like this:
etc.I cannot think of a reason why I would want to know the maximum found records (that's the Maximum in the admin pages, right?) though I am sure there is someone who would want to find it. The reason I want to pass the form variable along is so I can alter the number of records returned per page and only have to change it one place (i.e. in the original search).I use the following calculation to display the start/end number of each set on the page (obviously not formatted like this):Viewing Results [startat]- [HideIf [math][startat]+[max]-1[/math]>[NumFound]] [math][startat]+[max]-1[/math] [/hideif] [showif [math][startat]+[max]-1[/math]>[numfound]] [numfound] [/showif] of [numFound] Hit[HideIf [numFound]=1]s[/hideif]I have never been able to get the [start]/[end] stuff to work inside [shownext] and have been using the above for ages.John Peacock GHulbert@smithmicro.com wrote: > > >It appears that the construct [max] is evil. As soon as it appears in > >any page, bad things happen, except within [FormVariables]. I added > >the following to the top of my page: > > OK, I've changed the parser so that [max] returns the maximum found > records in the set (as usual), and [max field=xxx] performs the > aggregate calculation. [max ] would probably confuse it, so don't do > that, because it makes no sense anyway. > > Grant Hulbert, Director of Engineering ********************************** > Smith Micro, Internet Solutions Div | eCommerce (WebCatalog) > 16855 West Bernardo Drive, #380 | ------------------------- > San Diego, CA 92127 | Software & Site Development > Main Line: (858) 675-1106 | http://www.smithmicro.com > Fax: (858) 675-0372 ********************************** > > ############################################################# > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > To switch to the INDEX mode, E-mail to > Send administrative queries to ############################################################# This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to To switch to the INDEX mode, E-mail to Send administrative queries to Associated Messages, from the most recent to the oldest:

    
  1. Re: Linux Beta4 problems with multirecord returns (John Peacock 2000)
  2. Re: Linux Beta4 problems with multirecord returns (GHulbert@smithmicro.com 2000)
  3. Re: Linux Beta4 problems with multirecord returns (John Peacock 2000)
  4. Re: Linux Beta4 problems with multirecord returns (GHulbert@smithmicro.com 2000)
  5. Re: Linux Beta4 problems with multirecord returns (John Peacock 2000)
  6. Re: Linux Beta4 problems with multirecord returns (GHulbert@smithmicro.com 2000)
  7. Re: Linux Beta4 problems with multirecord returns (John Peacock 2000)
  8. Linux Beta4 problems with multirecord returns (John Peacock 2000)
Um, my [max] is a form variable used as a parameter to a search, like this: etc.I cannot think of a reason why I would want to know the maximum found records (that's the Maximum in the admin pages, right?) though I am sure there is someone who would want to find it. The reason I want to pass the form variable along is so I can alter the number of records returned per page and only have to change it one place (i.e. in the original search).I use the following calculation to display the start/end number of each set on the page (obviously not formatted like this):Viewing Results [startat]- [HideIf [math][startat]+[max]-1[/math]>[NumFound]] [math][startat]+[max]-1[/math] [/hideif] [showif [math][startat]+[max]-1[/math]>[numfound]] [numfound] [/showif] of [numFound] Hit[HideIf [numFound]=1]s[/hideif]I have never been able to get the [start]/[end] stuff to work inside [shownext] and have been using the above for ages.John Peacock GHulbert@smithmicro.com wrote: > > >It appears that the construct [max] is evil. As soon as it appears in > >any page, bad things happen, except within [formvariables]. I added > >the following to the top of my page: > > OK, I've changed the parser so that [max] returns the maximum found > records in the set (as usual), and [max field=xxx] performs the > aggregate calculation. [max ] would probably confuse it, so don't do > that, because it makes no sense anyway. > > Grant Hulbert, Director of Engineering ********************************** > Smith Micro, Internet Solutions Div | eCommerce (WebCatalog) > 16855 West Bernardo Drive, #380 | ------------------------- > San Diego, CA 92127 | Software & Site Development > Main Line: (858) 675-1106 | http://www.smithmicro.com > Fax: (858) 675-0372 ********************************** > > ############################################################# > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > To switch to the INDEX mode, E-mail to > Send administrative queries to ############################################################# This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to To switch to the INDEX mode, E-mail to Send administrative queries to John Peacock

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Euro WebDNA Conference (2004) ConvertChars (2000) Protect (1997) Another question (1997) RE: Purchased cart being overwritten (1997) Date sorting (1997) ooops...WebCatalog [FoundItems] Problem - LONG - (1997) [date format] w/in sendmail (1997) Interfacing WebMerchant to www.fedex.com (1997) Funny Submissions From a Form Page (1999) [WebDNA] sudo WebCatalogCtl stop won't work (2016) Multiple prices (1997) t or f (1997) pc (1997) GuestBook example (1997) webcat- multiple selection in input field (1997) 2.0 Info (1997) WebCatalog Technical Reference (1997) shell question (2004) authorizenet (2001)