Show next 2 examples that work
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 14940
interpreted = N
texte = For those still having problems with the [shownext] [/shownext] stuff Iknow these work. They may not be right...but they work!Creating a page were you want to pour out the records on via standardhyperlink to on a page/template named viseimages.htmlThe link to get to that page is
List all Vise Catalog Photosie: using...[search][founditems][/founditems][/search]I use the following which mostly came from Christer, except for my [hideif][Searchdb=/data/image.db&adddatesort=1&adddatesdir=de&inamesort=2&inamesdir=as&eqareadatarq=vises&max=[AT]&startAt=[SA]][founditems]display your search results here[/founditems]
[shownext position=begin&max=1][hideif [math][SA]=1[/math]] <--this hides the previous tag on the firstpage only Previous ImagePage [/hideif][/showNext] | [ShowNext position=end&max=1] Next ImagePage [/showNext] |
[/search]Tip: Use your browser back button to back-up it is way faster thenusing clicking on Previous Image Page. It loads the images again from yourlocal cache vs getting them again from our server.
Now in the example above we are displaying some 125 image thumnails 15 to apage. That is why the tip is listed there.Now using the $search methodwe start on a page like this to find sales reps by trade channel, zip codeand home offices only
which leads to the repziplist template[showif [wozcodesdatarq]=]
You forgot to enter a Zip Code tosearch on
Go back to Repsearch Page and enterit[/showif][showif [math]errorCount[/math]=0]
Found [numFound] items that match your request.
PanaVise Sales Representative Search by Zip Code results
[FoundItems]
Type: | [tradech] | Ph: | [phnum] |
Name: | [firm] | Fx: | [faxnum] |
Address: | [addr1] [addr2] | Em: | [em] |
Hmpage: | [hmpage] |
Contact: | [contact] | States Covered: | [stcodes] |
Territory Description: | [territory] |
[/FoundItems][ShowNext]
Show Items [start]-[end][/ShowNext]
Conduct Another Search
[/showif]Now this one we leave in all the links that spill below the search becauseif they do not hit a radio button it defaults to list all reps 4 per page.It shows the user the linksshow items 5-8show items 9-12, etc.In our case it will never be more than 4 or 5 links, because we know howfew records are in this data base.You can see the second one in action athttp://www.panavise.com/sales/search/repsearch.tmplthe first one is buried inside our protected intranet for our sales andmarketing department.Feel free to cut and copy the code, because that is what I did when I usedwhat Christer posted on the first example :)Again they might not be perfect webdna coding...but the final results iswhat counts :)===============================================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:
|
- Show next 2 examples that work (grichter@panavise.com (Gary Richter) 1997)
|
For those still having problems with the
[shownext] [/shownext] stuff Iknow these work. They may not be right...but they work!Creating a page were you want to pour out the records on via standardhyperlink to on a page/template named viseimages.htmlThe link to get to that page is
List all Vise Catalog Photosie: using...
[search][founditems][/founditems][/search]I use the following which mostly came from Christer, except for my
[hideif][Searchdb=/data/image.db&adddatesort=1&adddatesdir=de&inamesort=2&inamesdir=as&eqareadatarq=vises&max=[AT]&startAt=[SA]]
[founditems]display your search results here[/founditems]
[shownext position=begin&max=1][hideif [math][SA]=1[/math]] <--this hides the previous tag on the firstpage only[math][SA]-[AT][/math]&AT=[AT]> Previous ImagePage [/hideif][/showNext] | [ShowNext position=end&max=1][math][SA]+[AT][/math]&AT=[AT]> Next ImagePage [/showNext] |
[/search]Tip: Use your browser back button to back-up it is way faster thenusing clicking on Previous Image Page. It loads the images again from yourlocal cache vs getting them again from our server.
Now in the example above we are displaying some 125 image thumnails 15 to apage. That is why the tip is listed there.Now using the $search methodwe start on a page like this to find sales reps by trade channel, zip codeand home offices only
which leads to the repziplist template[math]errorCount=0[/math]>[showif [wozcodesdatarq]=]
You forgot to enter a Zip Code tosearch on
[referrer]>Go back to Repsearch Page and enterit[math]errorCount=errorCount+1[/math]>[/showif][showif
[math]errorCount[/math]=0]
Found [numFound] items that match your request.
PanaVise Sales Representative Search by Zip Code results
[founditems]
Type: | [tradech] | Ph: | [phnum] |
Name: | [firm] | Fx: | [faxnum] |
Address: | [addr1] [addr2] | Em: | [em] |
Hmpage: | [hmpage] |
Contact: | [contact] | States Covered: | [stcodes] |
Territory Description: | [territory] |
[/FoundItems]
[shownext]Show Items [start]-[end][/ShowNext]
Conduct Another Search
[/showif]Now this one we leave in all the links that spill below the search becauseif they do not hit a radio button it defaults to list all reps 4 per page.It shows the user the linksshow items 5-8show items 9-12, etc.In our case it will never be more than 4 or 5 links, because we know howfew records are in this data base.You can see the second one in action athttp://www.panavise.com/sales/search/repsearch.tmplthe first one is buried inside our protected intranet for our sales andmarketing department.Feel free to cut and copy the code, because that is what I did when I usedwhat Christer posted on the first example :)Again they might not be perfect webdna coding...but the final results iswhat counts :)===============================================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===============================================
grichter@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:
Alpha Sort - ignore certain characters (2003)
Apple event reply error (-1) (1997)
truncating email part II (1997)
WebCatb15 Mac CGI -- [purchase] (1997)
Base 64 encoding (2001)
looking for developers with solutions (2000)
Possible Bug in 2.0b15.acgi (1997)
Separate SSL Server (1997)
SOLVED: [WebDNA] [lookup..] returning nothing at all.. not even the notfound param. (2010)
BUG REPORT: numeric ge, le, gr & ls comparisons don't work ... (1999)
How do you hide [math]stuff[/math] (1997)
[WebDNA] WebDNA Showcase? (2008)
SiteEdit Pro Update Announcement (1997)
Field Totals (2004)
when is failing to [URL]ize values in a comparison risky? (1999)
RE: E-mailer error codes (1997)
Develop on Mac - Serve on Linux (2002)
all records returned. (1997)
I can help! (1996)
SFTP [scp solution] (2004)