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...[search group1field=Categoria+Subcategoria+Modelo+Marca+Nombre+DecripcionCorta+Descrip cionLarga&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 the customer 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 items displayed.Thanks Rodolfo 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:

    
  1. Re: mySQL numfound ( Alex McCombie 2006)
  2. Re: mySQL numfound ( Adam O'Connor 2006)
  3. Re: mySQL numfound ( Alex McCombie 2006)
  4. Re: mySQL numfound ( 2006)
  5. Re: mySQL numfound ( Adam O'Connor 2006)
  6. Re: mySQL numfound ( nitai@computeroil.com 2006)
  7. Re: mySQL numfound ( Donovan Brooke 2006)
  8. Re: mySQL numfound ( Kenneth Grome 2006)
  9. mySQL numfound ( 2006)
  10. Re: math with a [numfound] ( Lester 2005)
  11. Re: math with a [numfound] ( "Mark Pace" 2005)
  12. Re: math with a [numfound] ( Kenneth Grome 2005)
  13. Re: math with a [numfound] ( Kenneth Grome 2005)
  14. math with a [numfound] ( Lester 2005)
  15. Re: numfound question: SORTnumfound=ain't gonna happen ( Terry Wilson 2005)
  16. Re: numfound question ( Gary Krockover 2005)
  17. Re: numfound question ( Lester 2005)
  18. Re: numfound question ( "Nitai @ ComputerOil" 2005)
  19. Re: numfound question ( Lester 2005)
  20. Re: numfound question ( "Nitai @ ComputerOil" 2005)
  21. Re: numfound question ( Terry Wilson 2005)
  22. Re: numfound question ( Lester 2005)
  23. Re: numfound question ( Terry Wilson 2005)
  24. Re: numfound question ( Terry Wilson 2005)
  25. Re: numfound question ( "Nitai @ ComputerOil" 2005)
  26. numfound question ( Lester 2005)
  27. Re: numfound=0 for a search after going into the SSL (Alex McCombie 2003)
  28. Re: numfound=0 for a search after going into the SSL (Alan White 2003)
  29. Re: numfound=0 for a search after going into the SSL (Brian B. Burton 2003)
  30. Re: numfound=0 for a search after going into the SSL (marc@kaiwi.com (Marc Kaiwi) 2003)
  31. Re: numfound=0 for a search after going into the SSL (Gary Krockover 2003)
  32. Re: numfound=0 for a search after going into the SSL (Alain Russell 2003)
  33. Re: numfound=0 for a search after going into the SSL (Gary Krockover 2003)
  34. Re: numfound=0 for a search after going into the SSL (Gary Krockover 2003)
  35. Re: numfound=0 for a search after going into the SSL (WJ Starck 2003)
  36. numfound=0 for a search after going into the SSL (Gary Krockover 2003)
  37. Re: &summ=T >> numfound (Donovan Brooke 2002)
  38. Re: &summ=T >> numfound (Alain Russell 2002)
  39. Re: &summ=T >> numfound (Donovan Brooke 2002)
  40. &summ=T >> numfound (Alain Russell 2002)
  41. Re: easy numfound search? (Celeste Paul 2001)
  42. Re: easy numfound search? (John Peacock 2001)
  43. Re: easy numfound search? (Tad 2001)
  44. Re: easy numfound search? (Clint Davis 2001)
  45. easy numfound search? (Celeste Paul 2001)
  46. Re: easy numfound search? (John Peacock 2001)
  47. Re: [numfound] in nested [search] (Kim Ingram 2000)
  48. Re: [numfound] in nested [search] (Paul Fowler 2000)
  49. Re: [numfound] in nested [search] (blo 2000)
  50. Re: [numfound] in nested [search] (WebDNA Support 2000)
  51. Re: [numfound] in nested [search] (Paul Fowler 2000)
  52. Re: [numfound] in nested [search] (Kim Ingram 2000)
  53. [numfound] in nested [search] (blo 2000)
  54. Re: [showif [numfound]=0]? (Tim Robinson 2000)
  55. Re: [showif [numfound]=0]? (Joseph D'Andrea 2000)
  56. Re: [showif [numfound]=0]? (John Butler 2000)
  57. Re: [showif [numfound]=0]? (Tim Robinson 2000)
  58. Re: [showif [numfound]=0]? (Joseph D'Andrea 2000)
  59. Re: [showif [numfound]=0]? (Jesse Proudman (Lists Account) 2000)
  60. Re: [showif [numfound]=0]? (Tim Robinson 2000)
  61. Re: [showif [numfound]=0]? (Nitai @ Eyework 2000)
  62. Re: [showif [numfound]=0]? (Tim Robinson 2000)
  63. Re: [showif [numfound]=0]? (WebDNA Support 2000)
  64. [showif [numfound]=0]? (Tim Robinson 2000)
  65. Re: [numfound] within summ=t ??? (Joseph D'Andrea 2000)
  66. Re: [numfound] within summ=t ??? (Grant Hulbert 2000)
  67. Re: [numfound] within summ=t ??? (Rodolfo de la Garza 2000)
  68. Re: [numfound] within summ=t ??? (Joseph D'Andrea 2000)
  69. [numfound] within summ=t ??? (Joseph D'Andrea 2000)
  70. [numfound] within summ=t ??? (Joseph D'Andrea 2000)
  71. Re: [numFound] inside [showIf]? (Robert Wade 2000)
  72. Re: [numFound] inside [showIf]? (Bob McPeak 2000)
  73. Re: [numFound] inside [showIf]? (WebDNA Support 2000)
  74. [numFound] inside [showIf]? (Bob McPeak 2000)
  75. REPOST: [numfound] within summ=t (Joseph D'Andrea 2000)
  76. [numfound] within summ=t (Joseph D'Andrea 2000)
  77. Re: NumFound (Rodolfo de la Garza 1999)
  78. Re: NumFound (Jason Tyler 1999)
  79. Re: NumFound (Rodolfo de la Garza 1999)
  80. Re: NumFound (Jason Tyler 1999)
  81. NumFound (Rodolfo de la Garza 1999)
  82. [numfound] for [listfiles] (Pat McCormick 1998)
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...[search group1field=Categoria+Subcategoria+Modelo+Marca+Nombre+DecripcionCorta+Descrip cionLarga&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=[b usqueda]&sortby=[sortby]&sortorder=[sortorder]>Show [start] - [end] [/shownext] [numFound] items found of [busqueda] [shownext position=end&max=1&method=POST][cart]&bannID=[bannID]&busqueda=[b usqueda]&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 the customer 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 items displayed.Thanks Rodolfo 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)