Re: NumFound
This WebDNA talk-list message is from 1999
It keeps the original formatting.
numero = 25205
interpreted = N
texte = El 12/7/99 10:46 AM Jason Tyler jtyler@3ip.net escribió>> I have a template to see the results of a search like:>> >> [search]>> [shownext]
[/shownext]>> [numFound] items found>> [founditems]>> [showif]>> [/showif]>> [/founditems]>> [shownext] bla bla [/shownext]>> [/search]>> >> The problem is: The NumFound is not equal to the items displayed. It>> found 2 for example and because the showif it show only one, but the line>> said 2 items found.>> >> I know I need to do another [founditems] context after the [search] and a>> [math] routine to found the amount of items displayed, but I don't know>> how to do it.>> I'm using webCat 2.1.3>>I may be missing something here since some of it's a little vague, but I>would recommend that you use max in the search context and set it to 1 so>you can get rid of the showif.>>Please explain what you're using the showif for if this doesn't help, also I>would look at making your search context handle the requirements of the>showif.>>-Jason Tyler>www.3ip.netJason,Here is the complete code...[searchgroup1field=Categoria+Subcategoria+Modelo+Marca+Nombre+DecripcionCorta+DescripcionLarga&db=database.db&wogroup1data=[busqueda]&pricetype=num&[sortby]sort=1&[sortby]sdir=[sortorder]&max=10&startat=[startat]][shownext position=begin&max=1&method=POST]
Show [start] - [end][/shownext][numFound] items found of
[busqueda] [shownext position=end&max=1&method=POST]
Show [start] - [end][/shownext]
[founditems][showif [DisplayIt]=T][showif [DisplayItCustommer]=T] [showif [TieneThumb]=T] [/showif] [showif [TieneThumb]!T] [/showif] Marca: [Marca] / Modelo: [modelo] [Nombre] [descripcionCorta] P. Lista:$[format thousands .2f][PrecioListaDls][/format] / P. Actual: $[format thousands .2f][price][/format] / Ahorro: $[format thousands Vende:[vendor]
| [showif [index]\1]
[/showif][/showif][/showif] [/founditems]
[/search] The showif is because saome items I don't want to be displayed and others thecustomer doesn't want too be displayed. Then I both [DisplayIt][DisplayItCustommer] need to be T to display the item.It Works very good, the only problem is the NumFound VS number of itemsdisplayed.ThanksRodolfo de la Garza-------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go 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
Associated Messages, from the most recent to the oldest:
El 12/7/99 10:46 AM Jason Tyler jtyler@3ip.net escribió>> I have a template to see the results of a search like:>> >> [search]>> [shownext] [/shownext]>> [numFound] items found>> [founditems]>> [showif]>> [/showif]>> [/founditems]>> [shownext] bla bla [/shownext]>> [/search]>> >> The problem is: The NumFound is not equal to the items displayed. It>> found 2 for example and because the showif it show only one, but the line>> said 2 items found.>> >> I know I need to do another [founditems] context after the [search] and a>> [math] routine to found the amount of items displayed, but I don't know>> how to do it.>> I'm using webCat 2.1.3>>I may be missing something here since some of it's a little vague, but I>would recommend that you use max in the search context and set it to 1 so>you can get rid of the showif.>>Please explain what you're using the showif for if this doesn't help, also I>would look at making your search context handle the requirements of the>showif.>>-Jason Tyler>www.3ip.netJason,Here is the complete code...[searchgroup1field=Categoria+Subcategoria+Modelo+Marca+Nombre+DecripcionCorta+DescripcionLarga&db=database.db&wogroup1data=[busqueda]&pricetype=num&[sortby]sort=1&[sortby]sdir=[sortorder]&max=10&startat=[startat]][shownext position=begin&max=1&method=POST][cart]&bannID=[bannID]&busqueda=[busqueda]&sortby=[sortby]&sortorder=[sortorder]>Show [start] - [end][/shownext][numFound] items found of [busqueda] [shownext position=end&max=1&method=POST][cart]&bannID=[bannID]&busqueda=[busqueda]&sortby=[sortby]&sortorder=[sortorder]> Show [start] - [end][/shownext]
[founditems][showif [DisplayIt]=T][showif [DisplayItCustommer]=T] [url][sku][/url]&bannID=[bannID]&cart=[cart]> [showif [TieneThumb]=T] [/showif] [showif [TieneThumb]!T] [/showif] Marca: [Marca] / Modelo: [modelo] [Nombre] [descripcionCorta] P. Lista:$[format thousands .2f][PrecioListaDls][/format] / P. Actual: $[format thousands .2f][price][/format] / Ahorro: $[format thousands Vende:[vendor]
| [showif [index]\1]
[/showif][/showif][/showif] [/founditems]
[/search] The showif is because saome items I don't want to be displayed and others thecustomer doesn't want too be displayed. Then I both [DisplayIt][DisplayItCustommer] need to be T to display the item.It Works very good, the only problem is the NumFound VS number of itemsdisplayed.ThanksRodolfo de la Garza-------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go 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
Rodolfo de la Garza
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:
default value from Lookup (was Grant, please help me) (1997)
Need help with emailer- 2 issues (1997)
Negative number search (2000)
WebCat b15 Mac plug-in (1997)
Sitebuilder (2004)
emailer (1997)
Help formatting search results w/ table (1997)
Security Tip (1996)
using cookies to prevent access (2000)
Location of Browser Info.txt file (1997)
[founditems] & radiobuttons (2002)
Tracking E-mail click thrus (2001)
WebCatalog dying in NT (1998)
pictures / referrer etc. (1998)
WCS Newbie question (1997)
Stinkin' [Referrer] (1998)
Database Helper missing? (2000)
about this server and links to who (1997)
tcpconnect timeout with Authorizenet (2003)
[url] (1997)