WebCat2b13MacPlugIn - More limits on [include]
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 10608
interpreted = N
texte = Grant,I have a strange new problem with [searchstring] not working when I'mtrying to do a search from a [search] context which appears on the resultstemplate ... while the 'guts' of the results template are in a separatefile.I am using [include guts.tmpl] to place the 'guts' into the resultstemplate. The [searchstring] tag is inside the 'guts' file, of course. WhenI click on any of the [shownext] links, they do not bring up the next groupof records, they always brings up the exact same records as the originalsearch - even though these search strings 'look like' they aresyntactically correct.Why doesn't this work? Is it because the [shownext] context is in aseparate file from the [search] context? I didn't think that was supposedto make any difference because [include] *should* make these two files looklike a single Results.tmpl file to WebCat2, shouldn't it?Anyone have any idea what's going on here? In case you're interested,here's how I have things set up. Maybe you can see something obvious thatI'm overlooking:1- A visitor clicks this hyperlink:
Do a search for 'Ken'2- The results.tmpl has these entries on it - and nothing more:[showif [link]=yyy][search db=some.db&eqnumberdata=[v.number]&max=2&link=yyy][include Guts.tmpl][/search][/showif][showif [link]=zzz][search db=some.db&eqnamedata=[v.name]&max=2&link=zzz][include Guts.tmpl][/search][/showif]3- Because of the &link=zzz in the original hyperlink, the resultstemplate hides the [showif [link]=yyy] context and shows the [showif[link]=zzz] context. It also includes the Guts.tmpl file. The Guts.tmplfile is as follows:[showif [numfound]=0]No Matching Records Found[/showif][showif [numfound]>0]Here are your Matching Records
[/showif][FoundItems] < -- matching records displayed here[/FoundItems][ShowNext][start]-[end][/ShowNext]4- Here's the [searchstring] that's generated when I click the first andsecond and third [shownext] links:Results.tmpl$search?db=some.db&eqnamedata=Ken&max=2&link=zzz&StartAt=3Results.tmpl$search?db=some.db&eqnamedata=Ken&max=2&link=zzz&StartAt=5Results.tmpl$search?db=some.db&eqnamedata=Ken&max=2&link=zzz&StartAt=75- These links doesn't work. In the first case, istead of retrieving record#3 and 4 like it's supposed to, it retrieves record #1 and 2 again. Thishappens on each [shownext] link, even though these links 'appear' to becorrect (unless I'm blind or something). This is the first time I have everseen this kind of problem, and it is also the first time I have tried touse [include] to include the 'guts' of a results template ... so maybethere's a connection here? :)Sincerely,Ken------------------------------------To leave this talk list send an email to macjordomo@smithmicro.comwith BODYunsubscribe WebDNA-Talk------------------------------------
Associated Messages, from the most recent to the oldest:
Grant,I have a strange new problem with [searchstring] not working when I'mtrying to do a search from a
[search] context which appears on the resultstemplate ... while the 'guts' of the results template are in a separatefile.I am using [include guts.tmpl] to place the 'guts' into the resultstemplate. The [searchstring] tag is inside the 'guts' file, of course. WhenI click on any of the
[shownext] links, they do not bring up the next groupof records, they always brings up the exact same records as the originalsearch - even though these search strings 'look like' they aresyntactically correct.Why doesn't this work? Is it because the
[shownext] context is in aseparate file from the
[search] context? I didn't think that was supposedto make any difference because
[include] *should* make these two files looklike a single Results.tmpl file to WebCat2, shouldn't it?Anyone have any idea what's going on here? In case you're interested,here's how I have things set up. Maybe you can see something obvious thatI'm overlooking:1- A visitor clicks this hyperlink:
Do a search for 'Ken'2- The results.tmpl has these entries on it - and nothing more:[showif [link]=yyy][search db=some.db&eqnumberdata=[v.number]&max=2&link=yyy][include Guts.tmpl][/search][/showif][showif [link]=zzz][search db=some.db&eqnamedata=[v.name]&max=2&link=zzz][include Guts.tmpl][/search][/showif]3- Because of the &link=zzz in the original hyperlink, the resultstemplate hides the [showif [link]=yyy] context and shows the [showif[link]=zzz] context. It also includes the Guts.tmpl file. The Guts.tmplfile is as follows:[showif [numfound]=0]No Matching Records Found[/showif][showif [numfound]>0]Here are your Matching Records
[/showif][founditems] < -- matching records displayed here[/FoundItems][shownext][start]-[end][/ShowNext]4- Here's the [searchstring] that's generated when I click the first andsecond and third [shownext] links:Results.tmpl$search?db=some.db&eqnamedata=Ken&max=2&link=zzz&StartAt=3Results.tmpl$search?db=some.db&eqnamedata=Ken&max=2&link=zzz&StartAt=5Results.tmpl$search?db=some.db&eqnamedata=Ken&max=2&link=zzz&StartAt=75- These links doesn't work. In the first case, istead of retrieving record#3 and 4 like it's supposed to, it retrieves record #1 and 2 again. Thishappens on each [shownext] link, even though these links 'appear' to becorrect (unless I'm blind or something). This is the first time I have everseen this kind of problem, and it is also the first time I have tried touse [include] to include the 'guts' of a results template ... so maybethere's a connection here? :)Sincerely,Ken------------------------------------To leave this Talk List send an email to macjordomo@smithmicro.comwith BODYunsubscribe WebDNA-Talk------------------------------------
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:
Bug? (1997)
Most Efficiant Way to do restricted Areas (1997)
[WebDNA] TCPDoh (2009)
NT 4.02b5 Order Lineitems bug. (2000)
Smart caching problems with 2.1b3? (1997)
all records returned. (1997)
Simple way to create unique SKU (1997)
problem: type 2 errors (1997)
blank page from template (1997)
Off Topic: MacOS X Server on iMac (2000)
[WebDNA] German e-shop company proclaims "In Memory Computing" (2010)
multiple search commands (1997)
Search in 2 or more catalogs (1997)
Generating Options for a Form. (1997)
Bug or syntax error on my part? (1997)
Document Contains No Data! (1997)
Today's suggestions - 2 More (1998)
Order not created error (1997)
OT: Weird table rendering w/ WebCat in Explorer (2005)
variables in [addlineitem] (1998)