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:
Uniqueness of Cart number (2000)
Some Questions (1997)
OH CRAP!!!!!- Template not found error!!! (1999)
Re:no [search] with NT (1997)
(more) TCPConnect / Current Temperature (2004)
WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997)
Where is f2? (1997)
WebCatalog for Postcards ? (1997)
Date stamp and purging (1998)
IIS4b2 and WebCatalog b19 (1997)
using WebCat for Associate Programs? (1998)
Force leading zeros (1998)
purchase plugin (1996)
Multiple Merchant Accounts? (1997)
WebCat2 - many [carts] on one template page? (1997)
Email within tmpl ? (1997)
Multi Actions (1999)
WebCat2b12 - New features for 1.6 users ... (1997)
Nested tags count question (1997)
Searching multiple fields from one form field (1997)