Re: ShowNext & Showif together
This WebDNA talk-list message is from 1999
It keeps the original formatting.
numero = 24437
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.================================Kenneth Grome, WebDNA Consultant808-737-6499, http://webdna.net================================-------------------------------------------------------------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:
>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.================================Kenneth Grome, WebDNA Consultant808-737-6499, http://webdna.net================================-------------------------------------------------------------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
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:
PDF on the fly - how to? (2005)
wild question (1998)
HELP! Only 1/2 of pricing.db loading!?! (1999)
Paths, relative paths, webstar server setup andsecurity WebDNA-Talk@smithmicro.com (1997)
Problem with a search context (2005)
Odd error in logs (1998)
[WebDNA] [BULK] WebDNA AJAX example wanted! (2010)
Help! WebCat2 bug (1997)
Password protect (2000)
IE-caching (1998)
off topic fetch vs PCS photomaster (1997)
insert graphic in email (2000)
[FoundItems] solved - thanks (1997)
Email truncation test (1998)
shipcost (1997)
RE: includes and cart numbers (1997)
E-mailer error codes (1997)
Running 2 two WebCatalog.acgi's (1996)
shipcost (1997)
hidden databases (2000)