Re: The [shownext] limitations

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 45799
interpreted = N
texte = Claude Gelinas wrote: > This thread is getting very interesting and I think we're going to > break new grounds so bear with me. > > Right now, this is what the form code looks like to generate the > checkbox choices for the departments: > > [search db=Departments.db&neDepartmentIDdata=0&NameEnsort=1&NameEnsdir=as] > [founditems] > > > > > >
name=woDepartmentdatarq>[NameEn]
> [/founditems] > [/search] If you really have 190 departements, you just can't transfer that search string safely as an URL. The only solution I can see, is to replace the shonext link with a shownext *form* where you put all the values into hidden fields in a form and add a button instead of the text link.If, on the other hand there are just 19 departements, you could do something like:[search db=Departments.db&neDepartmentIDdata=0&NameEnsort=1&NameEnsdir=as] [founditems]
[NameEn]
[/founditems] [/search]and then add something like:woDepartmentdatarq[showif [DE10]=T]DE10+[/showif][showif [DE20]=T]DE20+[/showif][showif [DE30]=T]DE30+[/showif]... ...[showif [DE180]=T]DE180+[/showif][showif [DE190]=T]DE190[/showif]to the search criteria on the search results page. That'd solve the problem Brian pointed ot too.Btw, I'm sure somebody has a simpler syntax to achieve the same, but I'm in a bit hurry right now, and besides, my WebCatalog is too old to support [loop] so I don't really know how that tag works.Frank Nordberg http://www.musicaviva.com ------------------------------------------------------------- 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: The [shownext] limitations (John Peacock 2002)
  2. Re: The [shownext] limitations (Frank Nordberg 2002)
  3. Re: The [shownext] limitations (Dan Strong 2002)
  4. Re: The [shownext] limitations (Donovan 2002)
  5. Re: The [shownext] limitations (Dan Strong 2002)
  6. Re: The [shownext] limitations (Donovan 2002)
  7. Re: The [shownext] limitations (Brian Burton 2002)
  8. Re: The [shownext] limitations (Brian Fries 2002)
  9. Re: The [shownext] limitations (Claude Gelinas 2002)
  10. Re: The [shownext] limitations (Brian Fries 2002)
  11. Re: The [shownext] limitations (John Peacock 2002)
  12. Re: The [shownext] limitations (Claude Gelinas 2002)
  13. Re: The [shownext] limitations (Brian Burton 2002)
  14. Re: The [shownext] limitations (Glenn Busbin 2002)
  15. Re: The [shownext] limitations (Frank Nordberg 2002)
  16. The [shownext] limitations (Claude Gelinas 2002)
Claude Gelinas wrote: > This thread is getting very interesting and I think we're going to > break new grounds so bear with me. > > Right now, this is what the form code looks like to generate the > checkbox choices for the departments: > > [search db=Departments.db&neDepartmentIDdata=0&NameEnsort=1&NameEnsdir=as] > [founditems] > > > > > >
name=woDepartmentdatarq>[NameEn]
> [/founditems] > [/search] If you really have 190 departements, you just can't transfer that search string safely as an URL. The only solution I can see, is to replace the shonext link with a shownext *form* where you put all the values into hidden fields in a form and add a button instead of the text link.If, on the other hand there are just 19 departements, you could do something like:[search db=Departments.db&neDepartmentIDdata=0&NameEnsort=1&NameEnsdir=as] [founditems]
[NameEn]
[/founditems] [/search]and then add something like:woDepartmentdatarq[showif [DE10]=T]DE10+[/showif][showif [DE20]=T]DE20+[/showif][showif [DE30]=T]DE30+[/showif]... ...[showif [DE180]=T]DE180+[/showif][showif [DE190]=T]DE190[/showif]to the search criteria on the search results page. That'd solve the problem Brian pointed ot too.Btw, I'm sure somebody has a simpler syntax to achieve the same, but I'm in a bit hurry right now, and besides, my WebCatalog is too old to support [loop] so I don't really know how that tag works.Frank Nordberg http://www.musicaviva.com ------------------------------------------------------------- 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/ Frank Nordberg

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:

PIXO (1997) WebCat2b13MacPlugin - nested [xxx] contexts (1997) Emailer.Out (1998) replace problem (1999) [showif [math (1999) Conversion Database Blues (2001) Configuring E-mail (1997) My slower response (1997) OT: need help with web address (2003) Proper file locations (1997) Make sure I understand this??? (1997) unique ascending numbers (2003) Problems with [Math] (1998) Inventory Adjustment (2000) Cannot calculate prices (1997) How can I Add several Items into the cart at once? (1997) [WriteFile] problems (1997) Serving Images from SSL (was NT vs Mac) (1997) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) GuestBook example (1997)