Re: question: search return in order
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 12714
interpreted = N
texte = >When I have the thankyou.tmpl page do a search for serial numbers based>upon whether they were sold or not, the search results are random and not>necessarily in the order that they appear on the db. For instance, SKU>1,2,3,4,5,6 can be all marked as Sold=F but the search result of the db>with a max=2 will give me back SKU 3 and 5 or if I do it again results come>back as 1 and 4.>>Question:>>Is there a way to set the search up so that it when a max=2 that it will>give me SKU 1 and 2? And if SKU 1 is Sold=T then the results would then be>SKU 2 and 3? Not the random results.Try adding &asskusort=1&skutype=num to your search parameters. The&asskusort=1 tells WebCat to sort the matching sku values in ascendingorder, and the skutype=num tells WebCat that the sku values are numbers andshould be sorted as numbers instead of being sorted as text.Sincerely, Ken GromeWebDNA Solutionshttp://www.hui.net/dna/webdna.html.
Associated Messages, from the most recent to the oldest:
>When I have the thankyou.tmpl page do a search for serial numbers based>upon whether they were sold or not, the search results are random and not>necessarily in the order that they appear on the db. For instance, SKU>1,2,3,4,5,6 can be all marked as Sold=F but the search result of the db>with a max=2 will give me back SKU 3 and 5 or if I do it again results come>back as 1 and 4.>>Question:>>Is there a way to set the search up so that it when a max=2 that it will>give me SKU 1 and 2? And if SKU 1 is Sold=T then the results would then be>SKU 2 and 3? Not the random results.Try adding &asskusort=1&skutype=num to your search parameters. The&asskusort=1 tells WebCat to sort the matching sku values in ascendingorder, and the skutype=num tells WebCat that the sku values are numbers andshould be sorted as numbers instead of being sorted as text.Sincerely, Ken GromeWebDNA Solutionshttp://www.hui.net/dna/webdna.html.
Kenneth Grome
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:
Carts in Admin folder? (1999)
Virtual hosting and webcatNT (1997)
HTML Editors (1997)
Problems with [Applescript] (1997)
update on wn searching (1997)
Webstar 1.3.1 PPC (1997)
Secure server question (1997)
Re:trouble (1997)
Running _every_ page through WebCat-error.html (1997)
Email password -- was Classified Ads 4 Sale (1998)
Overwiting SKU in Cart (2002)
Webcat causing crashes left and right! (1997)
WebMerchant Problem... (1999)
2.01 upgrade problems (1997)
WC2.0 Memory Requirements (1997)
tabs as delimiters NOT (2004)
[/application] error? (1997)
Emailer problem with WC 2.1, NT, WebSite 2.1 (1998)
SSL and reg web* (1997)
[FoundItems] solved - thanks (1997)