Re: ShowNext & Showif together

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 25034
interpreted = N
texte = >>Hi there, >> >>I have a shownext context like this: >> >>[search >>group1field=Categoria+Subcategoria+Modelo+Marca+Nombre+DecripcionCorta+Desc >>ripcionLarga&db=mydatabase.db&wogroup1data=[busqueda]&Nombresort=1&Nombresd >>ir=as&max=10&startat=[startat]] >> >>[shownext position=begin&max=1&method=POST]>href=resbusquedasolo.tmpl?startat=[start]&busqueda=[busqueda]> [start] >>- [end][/shownext] [numFound] items found >> >>[shownext position=end&max=1&method=POST]>href=resbusquedasolo.tmpl?startat=[start]&busqueda=[busqueda]> [start] >>- [end] [/shownext] >> >>[founditems] >> [showif [SePublica]=T] Some Fields [/showif] >>[/founditems] >> >> >> [/search] >> >> >>This count all the records found (2 for this example), inside the >>founditems I have a show if context to show the records if a flag is >>True, when I do a search it shows for example 2 items found but if one >>is flaged with False the results page shows one item but it shows 2 >>items found also. >>It is confused for the user to see one record but the page said 2 items >>found. >> >>How can I fix this? > > >The easiest way is to use two founditems contexts in your search: > >The first must appear before any other code inside your search context, >and it will need to use a math routine that totals up all the items >displayed and sets the total to a text variable named [numDisplayed]. > >Then you can use [numDisplayed] instead of [numfound]. > >The second founditems context and your shownext code should stay exactly >as you have it now, and all this code should appear below the first >founditems context and before the ending [/search] tag. >Ken, I had a lot thinks to do in the past two weeks and I didn't fix this problem, but now I'm ready to do it, I pick up this e-mail from my webcat notes and I have a question.How can I do the math routine? Do you have an example to post it here?I try this one I found in the archive but it doesn't work: [math][founditems][numDisplay]+[/founditems]0[/math]I also try: [math][numDisplay]=[founditems]1+[/founditems]0[/math]it shows 10 as result because I have set &max=10 in the search context but I need the total items displayed but [numDisplay] is 0 Thanks -Rodolfo ------------------------------------------------------------- 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: ShowNext Context ( Steve Chun 2005)
  2. Re: Sitebuilder - Shownext Style ( Donovan Brooke 2004)
  3. Sitebuilder - Shownext Style ( Donovan Brooke 2004)
  4. Re: ShowNext Context ( Gary Krockover 2004)
  5. Re: ShowNext Context ( charles kline 2004)
  6. Re: ShowNext Context ( eLists 2004)
  7. Re: ShowNext Context ( Gary Krockover 2004)
  8. Re: ShowNext Context ( Glenn Busbin 2004)
  9. Re: ShowNext Context ( charles kline 2004)
  10. Re: ShowNext Context ( Donovan Brooke 2004)
  11. Re: ShowNext Context ( "Jesse Crofoot" 2004)
  12. Re: ShowNext Context ( Donovan Brooke 2004)
  13. Re: ShowNext Context ( Donovan Brooke 2004)
  14. ShowNext Context ( "Jesse Crofoot" 2004)
  15. Shownext replacement (sharing) ( Alex McCombie 2003)
  16. Re: ShowNext Page Style ( Donovan Brooke 2003)
  17. Re: ShowNext Page Style ( Gary Krockover 2003)
  18. Re: ShowNext Page Style ( Frank Nordberg 2003)
  19. Re: ShowNext Page Style ( Glenn Busbin 2003)
  20. Re: ShowNext Page Style ( Frank Nordberg 2003)
  21. Re: ShowNext Page Style ( Palle Bo Nielsen 2003)
  22. ShowNext Page Style ( "WebDna @" 2003)
  23. Re: Shownext on AOL (Glenn Busbin 2003)
  24. Re: Shownext on AOL (Kenneth Grome 2003)
  25. Re: Shownext on AOL (Donovan 2003)
  26. Re: Shownext on AOL (Glenn Busbin 2003)
  27. Re: Shownext on AOL (Kenneth Grome 2003)
  28. Re: Shownext on AOL (Velma Kahn 2003)
  29. Re: Shownext on AOL (Glenn Busbin 2003)
  30. Re: Shownext on AOL (Kenneth Grome 2003)
  31. Re: Shownext on AOL (Pedro Rivera 2003)
  32. Shownext on AOL (Glenn Busbin 2003)
  33. Re: shownext and searches (Terry Wilson 2002)
  34. Re: shownext and searches (Gary Krockover 2002)
  35. Re: shownext and searches (Kenneth Grome 2002)
  36. Re: shownext and searches (Gary Krockover 2002)
  37. Re: shownext and searches (Kenneth Grome 2002)
  38. Re: shownext and searches (Terry Wilson 2002)
  39. shownext and searches (Lester Emo 2002)
  40. Re: shownext example (Donovan Brooke 2001)
  41. Re: shownext example (John Peacock 2001)
  42. Re: shownext example (John Peacock 2001)
  43. Re: shownext example (Robert Kudrle 2001)
  44. Re: shownext example (Dennis J. Bonsall, Jr. 2001)
  45. Re: shownext example (Robert Kudrle 2001)
  46. shownext example (Robert Kudrle 2001)
  47. Re: shownext example (Pedro Rivera 2001)
  48. Re: shownext example (Brian B. Burton 2001)
  49. Re: shownext url search (Jay Van Vark 2001)
  50. Re: shownext url search (Kalin Mintchev 2001)
  51. shownext url search (Donovan Brooke 2001)
  52. Re: WebCat 4 crashes WebStar / Shownext Links (Terry Wilson 2001)
  53. Re: WebCat 4 crashes WebStar / Shownext Links (John Peacock 2001)
  54. Re: WebCat 4 crashes WebStar / Shownext Links (Terry Wilson 2001)
  55. Re: WebCat 4 crashes WebStar / Shownext Links (Kenneth Grome 2001)
  56. WebCat 4 crashes WebStar / Shownext Links (Terry Wilson 2001)
  57. Re: Possible Shownext from Listfiles???? (Kenneth Grome 2000)
  58. Re: Possible Shownext from Listfiles???? (Robert Wade 2000)
  59. Re: Possible Shownext from Listfiles???? (Kenneth Grome 2000)
  60. Re: Possible Shownext from Listfiles???? (Robert Wade 2000)
  61. Re: Possible Shownext from Listfiles???? (Kenneth Grome 2000)
  62. Possible Shownext from Listfiles???? (Robert Wade 2000)
  63. shownext in Another Users.db (Rodolfo de la Garza 2000)
  64. shownext in Another Users.db (Rodolfo de la Garza 2000)
  65. Re: Shownext and Jumping between pages (John@JTConsultants.com 2000)
  66. Shownext and Jumping between pages (Jeff Grady 2000)
  67. ShowNext - HELP! (Clint Davis 2000)
  68. ShowNext - HELP! (Clint Davis 2000)
  69. Re: Shownext from POST (Kenneth Grome 2000)
  70. Re: Shownext from POST (John -Theed 2000)
  71. Re: Shownext from POST (Kenneth Grome 2000)
  72. Re: Shownext from POST (John -Theed 2000)
  73. Re: Shownext from POST (John -Theed 2000)
  74. Re: Shownext from POST (WebDNA Support 2000)
  75. Re: Shownext from POST (Kenneth Grome 2000)
  76. Shownext from POST (John -Theed 2000)
  77. Re: Shownext Tricks (Joseph D'Andrea 2000)
  78. Shownext Tricks (Kim Ingram 2000)
  79. Re: shownext & searchstring (Vince Medina 2000)
  80. shownext & searchstring (Aaron Lynch 2000)
  81. Re: ShowNext context limited to 500 hits? (Nicolas Verhaeghe 2000)
  82. ShowNext context limited to 500 hits? (Nicolay Ramm 2000)
  83. Re: Can ShowNext do this? (Gary Krockover 2000)
  84. Re: Can ShowNext do this? (Gary Krockover 2000)
  85. Re: Can ShowNext do this? SOLVED (Clint Davis 2000)
  86. Re: Can ShowNext do this? (Clint Davis 2000)
  87. Re: Can ShowNext do this? (Mike Davis 2000)
  88. Re: Can ShowNext do this? (Clint Davis 2000)
  89. Can ShowNext do this? (Clint Davis 2000)
  90. Re: ShowNext Questions (Stuart Tremain 2000)
  91. Re: ShowNext Questions (Samuel W Polk Jr 2000)
  92. Re: ShowNext Questions (John Butler 2000)
  93. ShowNext Questions (Brady J. Horenstein 2000)
  94. Re: Shownext and search context (jpeacock@univpress.com 2000)
  95. Shownext and search context (Bjørn Are Solstad 2000)
  96. Re: ShowNext & Showif together (Rodolfo de la Garza 1999)
  97. Re: ShowNext & Showif together (Kenneth Grome 1999)
  98. ShowNext & Showif together (Rodolfo de la Garza 1999)
  99. ShowNext & Showif together (Rodolfo de la Garza 1999)
  100. Re: Shownext problems (PCS Technical Support 1999)
  101. Re: Shownext problems (Kenneth Grome 1999)
  102. Re: Shownext problems (PCS Technical Support 1999)
  103. Re: Shownext problems (Jeffrey L. Jones 1999)
  104. Re: Shownext problems (PCS Technical Support 1999)
  105. Shownext problems (Jeffrey L. Jones 1999)
  106. Re: Blasted shownext (request for 4.0) (Gary Richter 1998)
  107. Re: Blasted shownext (request for 4.0) (Gary Richter 1998)
  108. Cool ShowNext (was Re: Blasted shownext (request for 4.0)) (PCS Technical Support 1998)
  109. Blasted shownext (request for 4.0) (Gary Richter 1998)
  110. Re: Shownext - am i missing something? (PCS Technical Support 1998)
  111. Shownext - am i missing something? (Richard 1998)
  112. Re: ShowNext and random sort (PCS Technical Support 1998)
  113. Re: ShowNext and random sort (Dave MacLeay 1998)
  114. Re: ShowNext and random sort (PCS Technical Support 1998)
  115. ShowNext and random sort (Trevor Crist 1998)
  116. Re: ShowNext problems (Kenneth Grome 1998)
  117. Re: ShowNext problems (Johann Weber 1998)
  118. Re: ShowNext Anomaly (Johann Weber 1998)
  119. Re: shownext problems (Rob Marquardt 1998)
  120. Re: shownext problems (Kenneth Grome 1998)
  121. Re: shownext problems (Kenneth Grome 1998)
  122. Re: shownext problems & formvariables (Terry Wilson 1998)
  123. Re: shownext problems (Terry Wilson 1998)
  124. Re: shownext problems (Terry Wilson 1998)
  125. Re: shownext problems (Jay Van Vark 1998)
  126. Re: shownext problems (Kenneth Grome 1998)
  127. Re: shownext problems (Terry Wilson 1998)
  128. Re: shownext problems (Kenneth Grome 1998)
  129. shownext problems (Terry Wilson 1998)
  130. Re: ShowNext - This is Killing me! (Kenneth Grome 1998)
  131. ShowNext - This is Killing me! (John Kennedy 1998)
  132. Re: ShowNext (was New WebCatalog Site) (Dale Stokdyk 1997)
  133. Re: shownext & math (Raymond Hatch 1997)
  134. Re: shownext & math (Kenneth Grome 1997)
  135. shownext & math (Raymond Hatch 1997)
  136. shownext & math (Raymond Hatch 1997)
  137. Re: ShowNext truncating passed variable?? (Marty Schmid 1997)
  138. Re: ShowNext truncating passed variable?? (Kenneth Grome 1997)
  139. Re: search context w shownext works! (Kenneth Grome 1997)
  140. ShowNext truncating passed variable?? (Marty Schmid 1997)
  141. Re: ShowNext truncating passed variable?? (Grant Hulbert 1997)
  142. search context w shownext works! (Chris Gursche 1997)
  143. Stumped on ShowNext -using variables (Marty Schmid 1997)
  144. Re: shownext not showing next...still r2 (Kenneth Grome 1997)
  145. Re: Shownext never shows next...still (Chris Gursche 1997)
  146. Re: shownext not showing next...still r2 (Chris Gursche 1997)
  147. Re: shownext not showing next...still r2 (Kenneth Grome 1997)
  148. shownext not showing next...still r2 (Chris Gursche 1997)
  149. Re: Shownext never shows next...still (grichter@panavise.com (Gary Richter) 1997)
  150. Re: Shownext never shows next...still (Kenneth Grome 1997)
  151. Shownext never shows next...still (Chris Gursche 1997)
  152. Re: ShowNext for method=POST (Sandra L. Pitner 1997)
  153. Re: ShowNext for method=POST (Christer Olsson 1997)
  154. Re: ShowNext for method=POST (Chris Gursche 1997)
  155. Re: ShowNext for method=POST (Chris Gursche 1997)
  156. ShowNext for method=POST (Grant Hulbert 1997)
  157. Re: ShowNext example for GeneralStore (Grant Hulbert 1997)
  158. ShowNext example for GeneralStore (Grant Hulbert 1997)
  159. Re: ShowNext example for GeneralStore (Dale Stokdyk 1997)
  160. Re: How to get shownext to just shownext once (Sandra L. Pitner <76501.3521@CompuServe.COM> 1997)
  161. How to get shownext to just shownext once (Rob Schmidt 1997)
  162. Re: [shownext max=?] armed (Grant Hulbert 1997)
  163. Re: [shownext max=?] armed (Glenn Davis 1997)
  164. Re: [shownext max=?] armed (Grant Hulbert 1997)
  165. Re: [shownext max=?] armed (Glenn Davis 1997)
  166. RE: ShowNext Command (Christer Olsson 1997)
  167. RE: ShowNext Command (Paul Keen 1997)
  168. Re: ShowNext Command (bob 1997)
  169. Re: ShowNext Command (Kenneth Grome 1997)
  170. ShowNext Command (Paul Keen 1997)
  171. Re: [shownext max (bob 1997)
  172. Re: [shownext max=?] armed (Grant Hulbert 1997)
  173. [shownext max=?] armed (bob 1997)
  174. Re: WebCat2b13MacPlugIn - [shownext method=post] ??? (Kenneth Grome 1997)
  175. Re: WebCat2b13MacPlugIn - [shownext method=post] ??? (Grant Hulbert 1997)
  176. WebCat2b13MacPlugIn - [shownext method=post] ??? (Kenneth Grome 1997)
>>Hi there, >> >>I have a shownext context like this: >> >>[search >>group1field=Categoria+Subcategoria+Modelo+Marca+Nombre+DecripcionCorta+Desc >>ripcionLarga&db=mydatabase.db&wogroup1data=[busqueda]&Nombresort=1&Nombresd >>ir=as&max=10&startat=[startat]] >> >>[shownext position=begin&max=1&method=POST]>href=resbusquedasolo.tmpl?startat=[start]&busqueda=[busqueda]> [start] >>- [end][/shownext] [numFound] items found >> >>[shownext position=end&max=1&method=POST]>href=resbusquedasolo.tmpl?startat=[start]&busqueda=[busqueda]> [start] >>- [end] [/shownext] >> >>[founditems] >> [showif [SePublica]=T] Some Fields [/showif] >>[/founditems] >> >> >> [/search] >> >> >>This count all the records found (2 for this example), inside the >>founditems I have a show if context to show the records if a flag is >>True, when I do a search it shows for example 2 items found but if one >>is flaged with False the results page shows one item but it shows 2 >>items found also. >>It is confused for the user to see one record but the page said 2 items >>found. >> >>How can I fix this? > > >The easiest way is to use two founditems contexts in your search: > >The first must appear before any other code inside your search context, >and it will need to use a math routine that totals up all the items >displayed and sets the total to a text variable named [numDisplayed]. > >Then you can use [numDisplayed] instead of [numfound]. > >The second founditems context and your shownext code should stay exactly >as you have it now, and all this code should appear below the first >founditems context and before the ending [/search] tag. >Ken, I had a lot thinks to do in the past two weeks and I didn't fix this problem, but now I'm ready to do it, I pick up this e-mail from my webcat notes and I have a question.How can I do the math routine? Do you have an example to post it here?I try this one I found in the archive but it doesn't work: [math][founditems][numDisplay]+[/founditems]0[/math]I also try: [math][numDisplay]=[founditems]1+[/founditems]0[/math]it shows 10 as result because I have set &max=10 in the search context but I need the total items displayed but [numDisplay] is 0 Thanks -Rodolfo ------------------------------------------------------------- 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:

AND/OR searches in WebCat 3.07 (2003) WebCatalog can't find database (1997) Search returns all, not 20 (1997) WildWEBCAT98 Voting is OPEN! (1999) [WebDNA] WebDNA Server 8.6.2 snapshot available (2019) t or f (1997) WebCat2b15MacPlugin - [protect] (1997) Exclamation point (1997) Anyone ever have this email problem? (2004) READFILE command? (1998) Secure Server basic question... (1997) Help getting [shownext] to increment (2003) NT Manual (1997) [OT] Mom's gift (2006) NT Setup (1998) WebDNA Monitor (2005) WebTen? (1997) Separate SSL Server (1997) Explorer 3.0/ Access Denied! (1997) includes (2003)