Re: The max=0 issue is NOT a bug ...
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 29288
interpreted = N
texte = Ken - I am having a real hard time replicating any of your results. I tried taking apage with a simple search context and adding [text]max=9[/text] before thesearch and Max = [max] inside the context and I always get what I expected Max =9. I even tried adding a &Max to the [search] context itself, and it alteredhow many records were retrieved by the search, but the displayed text variablestill came out Max = 9. I do not know what you are doing. Please includecomplete code rather than snippets. Were you using a search command and not acontext?I cannot even find max listed as a variable inside the search context, just as aparameter. You may note that the shownext context will not even print anythingat all unless numfound > max, thus removing any need for your showif at all, ifyou put all of your text inside the showif.There is no question that anyone using any WebCatalog context name or parametername as a variable name should be rapped hard on the knuckles with a metalruler. This is a basic, beginner programming mistake. I think that WebCat 4.0should refuse to process any page with variable assignments to reserved words,and refuse to load any database with fieldnames that are reserved words, as longas the documentation contains the list of reserved words (all in one place ;~).John Peacock____________________Reply Separator____________________Subject: The max=0 issue is a bug ... Author:
(WebCatalog Talk)Date: 3/19/00 4:08 PMIn other words, it doesn't matter what method you use to set a [max] value inyour templates, because webcatalog is going to reset that value to 0 insideyour search context whether you want it to or not. And since it should not bedoing this, I believe this is a bug.What's amazing to me is that no one else has uncovered this bug before now. Itseems like it must be a common practice to use a showif comparison inside asearch context to compare [numfound] with [max] to determine whether or not toshow some leading text before the shownext code ...================================Kenneth Grome, WebDNA Consultant808-737-6499 http://webdna.net================================-------------------------------------------------------------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
Associated Messages, from the most recent to the oldest:
|
- Re: The max=0 issue is NOT a bug ... (jpeacock@univpress.com 2000)
|
Ken - I am having a real hard time replicating any of your results. I tried taking apage with a simple search context and adding [text]max=9[/text] before thesearch and Max = [max] inside the context and I always get what I expected Max =9. I even tried adding a &Max to the [search] context itself, and it alteredhow many records were retrieved by the search, but the displayed text variablestill came out Max = 9. I do not know what you are doing. Please includecomplete code rather than snippets. Were you using a search command and not acontext?I cannot even find max listed as a variable inside the search context, just as aparameter. You may note that the shownext context will not even print anythingat all unless numfound > max, thus removing any need for your showif at all, ifyou put all of your text inside the showif.There is no question that anyone using any WebCatalog context name or parametername as a variable name should be rapped hard on the knuckles with a metalruler. This is a basic, beginner programming mistake. I think that WebCat 4.0should refuse to process any page with variable assignments to reserved words,and refuse to load any database with fieldnames that are reserved words, as longas the documentation contains the list of reserved words (all in one place ;~).John Peacock____________________Reply Separator____________________Subject: The max=0 issue is a bug ... Author: (WebCatalog Talk)Date: 3/19/00 4:08 PMIn other words, it doesn't matter what method you use to set a [max] value inyour templates, because webcatalog is going to reset that value to 0 insideyour search context whether you want it to or not. And since it should not bedoing this, I believe this is a bug.What's amazing to me is that no one else has uncovered this bug before now. Itseems like it must be a common practice to use a showif comparison inside asearch context to compare [numfound] with [max] to determine whether or not toshow some leading text before the shownext code ...================================Kenneth Grome, WebDNA Consultant808-737-6499 http://webdna.net================================-------------------------------------------------------------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
jpeacock@univpress.com
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:
No luck with taxes (1997)
Cobalt and WebCatalog, do they work together? (2000)
cannot delete last admin (1999)
Re:What file? (1997)
send people in a database an email (2001)
Can this be done? (1997)
[WebDNA] TCPDoh (2009)
need some help with a loop (1999)
request for string functions (1998)
Username for Admin Group (1997)
Caching [include] files ... (1997)
Sorting by date (1997)
How did *you* learn Web Catalog? (2000)
Searching multiple Databases (1997)
CDATA problems (2008)
webcat method for waiting specific amount of time? (2000)
expired beta (1997)
[WebDNA] Rewrite url (2013)
Erotic Sites (1997)
calculating tax rates, mail order solutions and version 2 (1997)