Re: [shownext] and sort

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 19320
interpreted = N
texte = Using a hyperlink method here is what I use all the timeHyperlink Search <--where 'at' relates to the number of records I want to show(search.html or display page)[search db=whatever.db(put your sort and search stuff here) &max=[at]&startAt=[sa]] (My shownext code below)[shownext position=begin&max=1] [hideif [math][sa]=1[/math] Show previous page [/hideif] [/shownext][shownext position=end&max=1] Show next page [/shownext]Notice that I seed the search with at=15 for the max number of records to show on the search results page.I allow the user to back up and go foreward in groups of 15 and in the shownext I re-seed the [at] value. If you don't it will not work.In your code you>>>And the ShowNext code: >>>[shownext] >>>
>>>where is the value [start] coming from that is the part that I got lost on.If you put a line inside your shownext that is just start=[start] what shows up on the screen? That will give you and indication if your code is working and that [start] is not blank in value.On sorts out of habit I have always put the sorts first in the code where you have it last, I have no idea if that would make any difference. Because my logic says first sort it, them give me just the records I want.May I make a suggestion that you get your sorts working first then do you shownext stuff second if you are having problems. And try it without the buttons and try it my way which is a tried and proven method that has been used by many others on this list going back over a year. Then go to your buttons. IE: try one thing at a time get it working then go to the next and then the next.I hope this helps.=============================================== Gary Richter PanaVise Products, Inc. 7540 Colbert Dr. Reno, Nevada 89511 Ph: 702.850.2900 Fx: 702.850.2929 Email: grichter@panavise.com http://www.panavise.com =============================================== Associated Messages, from the most recent to the oldest:

    
  1. Re: [shownext] and sort (Gary Richter 1998)
  2. Re: [shownext] and sort (Sue Ann Sanders 1998)
  3. Re: [shownext] and sort (Gary Richter 1998)
  4. Re: [shownext] and sort (John Hill 1998)
  5. Re: [shownext] and sort (Sue Ann Sanders 1998)
  6. Re: [shownext] and sort (Peter Ostry 1998)
  7. Re: [shownext] and sort (Kenneth Grome 1998)
  8. Re: [shownext] and sort (Sue Ann Sanders 1998)
  9. Re: [shownext] and sort (Sue Ann Sanders 1998)
Using a hyperlink method here is what I use all the timeHyperlink Search <--where 'at' relates to the number of records I want to show(search.html or display page)[search db=whatever.db(put your sort and search stuff here) &max=[at]&startAt=[sa]] (My shownext code below)[shownext position=begin&max=1] [hideif [math][sa]=1[/math] [math][sa]-[at][/math]&at=[at]> Show previous page [/hideif] [/shownext][shownext position=end&max=1] [math][sa]+[at][/math]&at=[at]> Show next page [/shownext]Notice that I seed the search with at=15 for the max number of records to show on the search results page.I allow the user to back up and go foreward in groups of 15 and in the shownext I re-seed the [at] value. If you don't it will not work.In your code you>>>And the ShowNext code: >>>[shownext] >>> >>>where is the value [start] coming from that is the part that I got lost on.If you put a line inside your shownext that is just start=[start] what shows up on the screen? That will give you and indication if your code is working and that [start] is not blank in value.On sorts out of habit I have always put the sorts first in the code where you have it last, I have no idea if that would make any difference. Because my logic says first sort it, them give me just the records I want.May I make a suggestion that you get your sorts working first then do you shownext stuff second if you are having problems. And try it without the buttons and try it my way which is a tried and proven method that has been used by many others on this list going back over a year. Then go to your buttons. IE: try one thing at a time get it working then go to the next and then the next.I hope this helps.=============================================== Gary Richter PanaVise Products, Inc. 7540 Colbert Dr. Reno, Nevada 89511 Ph: 702.850.2900 Fx: 702.850.2929 Email: grichter@panavise.com http://www.panavise.com =============================================== Gary Richter

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:

WebCat2b15MacPlugin - showing [math] (1997) Pull Down Search (2000) For those of you not on the WebCatalog Beta... (1997) [WebDNA] Installation of WebDNA 6.2 on Ubuntu 12.04 (2013) UPS online (2003) [WebDNA]