Re: Help getting [shownext] to increment

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 47295
interpreted = N
texte = >> I'm getting groggy trying to get [shownext] to work ... > >Simply put, [shownext] requires the original search to include both >the max and start paramaters ... John's almost right, except for two things:1- The search context requires a startat parameter, not a start parameter.2- The value of the startat parameter must be a variable ... and the value of that variable must be set inside the shownext context.In other words, your search context should look like this:[search db=catalog.db&eqXXXdatarq=[url][XXX][/url]&max=5&startat=[startat]]... and your shownext links should look like this:[shownext] Show items [start]-[end] [/shownext]Please pay close attention to the startat=[start] portion of the URL in the shownext context. It does NOT say start=[start] and it does NOT say startat=[startat] -- it says startat=[start]. The reason is because this is where the startat value gets *SET* ... and it gets set to the [start] value.If this confuses anyone, here are some other examples that will work just fine too:Example #2: [search ... &startat=[var99]] [shownext][start][/shownext]Example #3: [search ... &startat=[blah]] [shownext][start][/shownext]Example #4: [search ... &startat=[zzzzz]] [shownext][start][/shownext]In other words, you can NAME the variable anything you want, as long as it gets its value from the [start] tag inside the shownext. Then use the same variable as the startat value in your search context. That's all there is to it. By the way, if you stop messing around with the searchstring tag and instead put all the required variables into your shownext URLs manually, as I have demonstrated above, then you will probably begin to understand what's going on when you click a shownext link.Using the searchstring tag tends to hide important information from you, which only confuses the issue. And as John said in his previous message, the searchstring tag has problems -- which is yet another good reason to avoid using it.If you stop using the searchstring tag and adopt a different approach, there is only one simple rule to follow: Every search context variable MUST appear in every shownext URL.Simple rule, right? Except that when you try to do it the 'easy way' by using [searchstring] to put the variables in the shownext URL, you never really see what the [searchstring] tag's value is -- so you never really know what values are being put into the URL. And then you get confused because you don't really understand what's going on inside that searchstring tag ...So ... if you prefer to see and understand EXACTLY what's going on, I would recommend that you never again use the searchstring tag. Instead, just type every variable manually into your shownext links according to the simple rule I wrote above.If you can remember the simple rule above, that is all you will ever need to understand why your shownext links don't work sometimes ... and how to fix them so they WILL work properly from now on.:) Sincerely, Kenneth Grome--------------------------------------------------- WebDNA Professional Training and Development Center 175 J. Llorente Street +63 (32) 255-6921 Cebu City, Cebu 6000 kengrome@webdna.net Philippines http://www.webdna.net ---------------------------------------------------------------------------------------------------------------- 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 Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Help getting [shownext] to increment (Marko Bernyk 2003)
  2. Re: Help getting [shownext] to increment (Marko Bernyk 2003)
  3. Re: Help getting [shownext] to increment (Kenneth Grome 2003)
  4. Re: Help getting [shownext] to increment (Donovan 2003)
  5. Re: Help getting [shownext] to increment (John Peacock 2003)
  6. Re: Help getting [shownext] to increment (Donovan 2003)
  7. Re: Help getting [shownext] to increment (Joe R. Richardson 2003)
  8. Re: Help getting [shownext] to increment (Joe R. Richardson 2003)
  9. Re: Help getting [shownext] to increment (John Peacock 2003)
  10. Re: Help getting [shownext] to increment (Kenneth Grome 2003)
  11. Re: Help getting [shownext] to increment (John Peacock 2003)
  12. Help getting [shownext] to increment (Joe R. Richardson 2003)
>> I'm getting groggy trying to get [shownext] to work ... > >Simply put, [shownext] requires the original search to include both >the max and start paramaters ... John's almost right, except for two things:1- The search context requires a startat parameter, not a start parameter.2- The value of the startat parameter must be a variable ... and the value of that variable must be set inside the shownext context.In other words, your search context should look like this:[search db=catalog.db&eqXXXdatarq=[url][XXX][/url]&max=5&startat=[startat]]... and your shownext links should look like this:[shownext] [thisurl]?XXX=[url][XXX][/url]&startat=[start]> Show items [start]-[end] [/shownext]Please pay close attention to the startat=[start] portion of the URL in the shownext context. It does NOT say start=[start] and it does NOT say startat=[startat] -- it says startat=[start]. The reason is because this is where the startat value gets *SET* ... and it gets set to the [start] value.If this confuses anyone, here are some other examples that will work just fine too:Example #2: [search ... &startat=[var99]] [shownext][start][/shownext]Example #3: [search ... &startat=[blah]] [shownext][start][/shownext]Example #4: [search ... &startat=[zzzzz]] [shownext][start][/shownext]In other words, you can NAME the variable anything you want, as long as it gets its value from the [start] tag inside the shownext. Then use the same variable as the startat value in your search context. That's all there is to it. By the way, if you stop messing around with the searchstring tag and instead put all the required variables into your shownext URLs manually, as I have demonstrated above, then you will probably begin to understand what's going on when you click a shownext link.Using the searchstring tag tends to hide important information from you, which only confuses the issue. And as John said in his previous message, the searchstring tag has problems -- which is yet another good reason to avoid using it.If you stop using the searchstring tag and adopt a different approach, there is only one simple rule to follow: Every search context variable MUST appear in every shownext URL.Simple rule, right? Except that when you try to do it the 'easy way' by using [searchstring] to put the variables in the shownext URL, you never really see what the [searchstring] tag's value is -- so you never really know what values are being put into the URL. And then you get confused because you don't really understand what's going on inside that searchstring tag ...So ... if you prefer to see and understand EXACTLY what's going on, I would recommend that you never again use the searchstring tag. Instead, just type every variable manually into your shownext links according to the simple rule I wrote above.If you can remember the simple rule above, that is all you will ever need to understand why your shownext links don't work sometimes ... and how to fix them so they WILL work properly from now on.:) Sincerely, Kenneth Grome--------------------------------------------------- WebDNA Professional Training and Development Center 175 J. Llorente Street +63 (32) 255-6921 Cebu City, Cebu 6000 kengrome@webdna.net Philippines http://www.webdna.net ---------------------------------------------------------------------------------------------------------------- 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 Web Archive of this list is at: http://webdna.smithmicro.com/ 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:

WebCat2 Append problem (B14Macacgi) (1997) Signal Raised (1997) error count with $purchase (1997) Categories and Sub-categories (2003) Cookie problems using Mozilla and Camino browsers (2004) [WebDNA] Error: Can't open order file. Ignoring [OrderFile] context (2011) TCPConnect misbehavin' for me. (2000) WebDNA problems with Itools 7.3 Upgrade (2004) RE: error count with $purchase (1997) Execute Applescript (1997) Snake Bites (1997) searching multiple databases in single search (1997) creating writefile data from a nested search (1997) HELP WITH DATES (1997) Version f1 status (1997) about this server and links to who (1997) Price and Formula.db (2002) pipe delimited crconvert database (2002) Multiple radio buttons (1998) GETCOOKIE not working as expected (2005)