Re: Still Stumped on ShowNext...HELP!
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 14954
interpreted = N
texte = >Well I can't seem to get anywhere on resolving my ShowNext problems in>spite of following Ken and Gary's working examples. Again to recap: I'm>collecting variables on a form and passing them thru to an embedded search>on my results.tmpl. Fine so far - the records are displayed and a ShowNext>link appears, however clicking on the ShowNext link always finds 0>records???>>I'm extremely disperate to resolve this, any help is appreciated!Hi Marty,I was out this morning, so I just saw your message.You forgot to pass the search parameters from your shownext links tothe search context. The search context won't know what [Spvar] and[plansvar] mean when you leave them out of your shownext links. Trythis instead:[searchdb=bigtest.db&max=[AT]&wsplansdatarq=[plansvar]&neLast_namedata=[blank]&woSpecialtydatarq=[Spvar]&asLast_namesort=1&startAt=[SA]][shownext position=begin&max=1]
Previous Group[/showNext][ShowNext position=end&max=1]
Next Matching Group[/showNext][/search]I've never used those position=begin and max=1 parameters in myshownext stuff. They are kinda new to me and I still tend to write mycode without them, but if they work the way they are advertised, thenI think these examples should work for you. If not, let me know ...Sincerely, Ken GromeWebDNA Solutionshttp://www.smithmicro.com/webdnasolutions/.
Associated Messages, from the most recent to the oldest:
>Well I can't seem to get anywhere on resolving my ShowNext problems in>spite of following Ken and Gary's working examples. Again to recap: I'm>collecting variables on a form and passing them thru to an embedded search>on my results.tmpl. Fine so far - the records are displayed and a ShowNext>link appears, however clicking on the ShowNext link always finds 0>records???>>I'm extremely disperate to resolve this, any help is appreciated!Hi Marty,I was out this morning, so I just saw your message.You forgot to pass the search parameters from your shownext links tothe search context. The search context won't know what [Spvar] and[plansvar] mean when you leave them out of your shownext links. Trythis instead:[searchdb=bigtest.db&max=[AT]&wsplansdatarq=[plansvar]&neLast_namedata=[blank]&woSpecialtydatarq=[Spvar]&asLast_namesort=1&startAt=[SA]][shownext position=begin&max=1]
[thisurl]?AT=[AT]&plansvar=[plansvar]&Spvar=[Spvar]&SA=[start]>Previous Group[/showNext][ShowNext position=end&max=1]
[thisurl]?AT=[AT]&plansvar=[plansvar]&Spvar=[Spvar]&SA=[start]>Next Matching Group[/showNext][/search]I've never used those position=begin and max=1 parameters in myshownext stuff. They are kinda new to me and I still tend to write mycode without them, but if they work the way they are advertised, thenI think these examples should work for you. If not, let me know ...Sincerely, Ken GromeWebDNA Solutionshttp://www.smithmicro.com/webdnasolutions/.
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:
simple [convertChars] Q (2000)
Quickie question on the email templates (1997)
failure to encrypt (or maybe decrypt) (1999)
[WebDNA] Quality SSL (2009)
pull downs (1997)
Need WebDNA that crashes server for testing (2000)
Product tag (2001)
Weird Math and SV (1997)
problems with 2 tags (1997)
Review comparison by PC Magazine: Open for On-lineBusiness (1997)
Sorting by date (1997)
WebDNA Developer Edition - Host config problem (2003)
Attn: Bug in GeneralStore example b15 (1997)
For those of you not on the WebCatalog Beta... (1997)
Hiding HTML and breaking the page (1997)
Multiple catalog databases and showcart (1997)
WebDNA and FreeBSD 6.1 with Apache (2007)
Appligent PDFs (was: OT - Dig Sigs) (2004)
Upgrading old WebCat Database Files (1997)
Document Contains No Data! (1997)