Re: Search Command, multiple dbs, etc. --further elucidation needed
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 30895
interpreted = N
texte = John--I tried this, to no avail, in my Results.tpl, as a link to People.tpl:
[Author1]And then this in People.tpl:
[search db=fitpeople.db&eqAuthor1data=[Author1]]
[founditems][Author1] | [Text] | [Biography] | [/founditems][/search]
I hoped that I would pass the value for of Author1 from theproducts.db/Results.tpl to the People.tpl page so that thesearch/founditems on the People.tpl would use the passed value to findthe matching record in the people.db.I'm getting the concept but I'm not proficient with thetags/contexts/commands yet.Can you show me what 's wrong with the code above? Or should I startfrom scratch?Thanks.Bob/Amelia McPeak wrote:> > John--> > You are a beautiful man. That's the tutorial I was looking for.> Thanks!> > John Butler wrote:> >> > Robert I am coming in late, but here's a couple things that may help you sort it all> > out:> >> > ANY variable named anything you want can be passed from one page to another in a link> > like so-> > somepage?var1=whatever&var2=whatever2> >> > or thru a form like so-> > > >> > -another topic-> > webcat can retrieve the value of any variable at any time by putting the name of the> > var inside brackets, like so-> > [varname]> >> > this assumes you have a value for that var, like you just passed it from the previous> > page via a link or form (as just> > explained), or if you have given the var a value higher up on the same page using a> > webcat [math] or [text] context.> >> > -another topic-> > you can search a db using webcat either with a context or command. Commands are> > invoked in the link-> > > HREF=People.tpl?command=search&db=fitproducts.db&eqAuthor1data=[Author4]>[Author4]> >> > or thru a form-> > > >> > when you use a command you just need the [founditems] loop on the next page.> >> > CONTEXTS on the other hand are invoked on the same page you put the [founditems] like> > so-> > [search db=some.db&eqAuthor1data=[Author4]]> > [founditems]> > do stuff with the record(s) found by the search> > [/founditems]> > [/search]> >> > HTH> >> > -John> >> > Robert McPeak wrote:> >> > > Thanks for your reply Mike. However, I'm still quite confused. I tried> > > using a link like you suggested on my Results.tpl page and leaving the> > > [search] context in my People.tpl file but it didn't return anything.> > >> > > If I am to use the command style links (as below) then how should I> > > modify my People.tpl page?> > >> > > I understand the need to pass the criteria to the People.tpl page. I> > > don't see how the link you offered does this. I'm not too sure of how> > > forms work. Does your suggestion involve a form that needs to be> > > accounted for in People.tpl?> > >> > > Thanks.> >> > -------------------------------------------------------------> > 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 > > -------------------------------------------------------------> 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 -------------------------------------------------------------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
Associated Messages, from the most recent to the oldest:
John--I tried this, to no avail, in my Results.tpl, as a link to People.tpl:[Author1]And then this in People.tpl:[search db=fitpeople.db&eqAuthor1data=[Author1]]
[founditems][Author1] | [text] | [Biography] | [/founditems][/search]
I hoped that I would pass the value for of Author1 from theproducts.db/Results.tpl to the People.tpl page so that thesearch/founditems on the People.tpl would use the passed value to findthe matching record in the people.db.I'm getting the concept but I'm not proficient with thetags/contexts/commands yet.Can you show me what 's wrong with the code above? Or should I startfrom scratch?Thanks.Bob/Amelia McPeak wrote:> > John--> > You are a beautiful man. That's the tutorial I was looking for.> Thanks!> > John Butler wrote:> >> > Robert I am coming in late, but here's a couple things that may help you sort it all> > out:> >> > ANY variable named anything you want can be passed from one page to another in a link> > like so-> > somepage?var1=whatever&var2=whatever2> >> > or thru a form like so-> > > >> > -another topic-> > webcat can retrieve the value of any variable at any time by putting the name of the> > var inside brackets, like so-> > [varname]> >> > this assumes you have a value for that var, like you just passed it from the previous> > page via a link or form (as just> > explained), or if you have given the var a value higher up on the same page using a> > webcat [math] or [text] context.> >> > -another topic-> > you can search a db using webcat either with a context or command. Commands are> > invoked in the link-> > > HREF=People.tpl?command=search&db=fitproducts.db&eqAuthor1data=[Author4]>[Author4]> >> > or thru a form-> > > >> > when you use a command you just need the [founditems] loop on the next page.> >> > CONTEXTS on the other hand are invoked on the same page you put the [founditems] like> > so-> > [search db=some.db&eqAuthor1data=[Author4]]> > [founditems]> > do stuff with the record(s) found by the search> > [/founditems]> > [/search]> >> > HTH> >> > -John> >> > Robert McPeak wrote:> >> > > Thanks for your reply Mike. However, I'm still quite confused. I tried> > > using a link like you suggested on my Results.tpl page and leaving the> > > [search] context in my People.tpl file but it didn't return anything.> > >> > > If I am to use the command style links (as below) then how should I> > > modify my People.tpl page?> > >> > > I understand the need to pass the criteria to the People.tpl page. I> > > don't see how the link you offered does this. I'm not too sure of how> > > forms work. Does your suggestion involve a form that needs to be> > > accounted for in People.tpl?> > >> > > Thanks.> >> > -------------------------------------------------------------> > 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 > > -------------------------------------------------------------> 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 -------------------------------------------------------------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
Bob/Amelia McPeak
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:
wrong input values? (1997)
multiple prices (1998)
SpiderBotLock! (2003)
Requiring that certain fields be completed (1997)
OT: 128 bit Encryption (2003)
I hate talking to myself on this list (2004)
Shopping Cart - prices? (1997)
Chicago based WebCat Hosters (2000)
Generating Searches on the fly? (1999)
error: Too many nested [xxx] contexts (1997)
WebCat2b13MacPlugIn - syntax to convert date (1997)
[WebDNA] Error 500 with SUMM=T (2017)
IIS4 (1998)
FlushDatabase Suggestion (1998)
Errata: WCS Newbie question (1997)
How To question on setting up downloads (1997)
[WebDNA] Date weirdness (2014)
Banners (1997)
Upgrade to web DNA6.0 (2004)
how do you and/or in a search? (1997)