Re: The [shownext] limitations

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 45776
interpreted = N
texte = I don't think it can be done when using command-based searching... you need to switch to context-based searching, where you don't send the command=search parameter and the receiving page uses a [search] context. For most uses, this is a better way to go in any case, and in your case it will be necessary.I'm sure there are descriptions of how to do this in the list archives.Once you make the switch to context searhing, you can apply more intelligent coding to the parsing of your formvariables:[text]dept=[formvariables name=woDepartmentdatarq][value]+[/formvariables][/text]then in your search context, you can include the dept variable:[search db=.....&woDepartmentdatarq=[dept]...]- brianAt 3:05 PM 11/27/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] > >...how would you code this to be able to concatenate >(Dept1+Dept2+Dept3 and so on, if they're checked by the user who >performs the search)? > >I'm sure a lot of WebDNA coders on the list would be happy to know >how to handle the checkboxes efficiently. > > > >On Wednesday, November 27, 2002, at 02:55 PM, Brian Fries wrote: > >>Beyond the ability to send this long of a URL (which you can't, as >>others have pointed out), there are problems with your original >>search that are compounding your difficulties. Namely, you cannot >>directly search the same field via multiple DATA parameters. And >>even if you could, you would get no found items because every one >>of your woDepartmentdatarq requires a match, and clearly they >>can't all match. >> >>Instead of multiple woDepartmentdatarq parameters, they should >>all be merged into one parameter with multiple values, like this: >> >>&woDepartmentdatarq=DE10+DE20+DE30+DE40+....+DE200 >> >>In addition to searching properly, this would shorten the generated >>URL considerably. >> >>- brian >> >>At 1:36 PM 11/27/2002, Claude Gelinas wrote: >>>Hello Everyone, >>> >>>I need to know if the following WebDNA URL is too long to be >>>interpreted correctly: >>> >>>http://www.mydomain.com/ >>>Employers.max?command=search&command=search&db=Candidates.db&Candidate >>>ID >>>sort=1&CandidateIDsdir=de&S=1&SA=EmployersCS1&L=En&EmployerID=329- >>>WED- >>>173942&SearchType=Keywords&group1field=CandidateID%2BFirstNameM%2BLast >>>na >>>meM%2BAliasNameM%2BEmailM%2BAliasEmailM%2BAddressM%2BPhoneM%2BSloganEn >>>%2 >>>BWorkExperienceEn%2BEducationEn%2BProfessionalSkillsEn%2BTechnicalSkil >>>ls >>>KeywordsEn%2BGeoCoverageKeywordsM&wagroup1datarq=&waOccupationalKeywor >>>ds >>>Mdatarq=&waGeoCoverageKeywordsMdatarq=&eqLandatarq=En&x=11&y=5&woDepar >>>tm >>>entdatarq=DE10&woDepartmentdatarq=DE20&woDepartmentdatarq=DE30&woDepar >>>tm >>>entdatarq=DE40&woDepartmentdatarq=DE50&woDepartmentdatarq=DE60&woDepar >>>tm >>>entdatarq=DE70&woDepartmentdatarq=DE80&woDepartmentdatarq=DE90&woDepar >>>tm >>>entdatarq=DE100&woDepartmentdatarq=DE110&woDepartmentdatarq=DE120&woDe >>>pa >>>rtmentdatarq=DE130&woDepartmentdatarq=DE140&woDepartmentdatarq=DE150&w >>>oD >>>epartmentdatarq=DE210&woDepartmentdatarq=DE160&woDepartmentdatarq=DE17 >>>0& >>>woDepartmentdatarq=DE180&woDepartmentdatarq=DE190&woDepartmentdatarq=D >>>E2 00&max=25&startAt=26 >>> >>>It's exactly 1,051 characters long and is created after a >>>[shownext] command in which I ask to go to the following URL: >>>Employers.max?command=search&[searchString] >>> >>>Assuming there were 25 results on the first page, would anyone of >>>you know why I'm not getting a list from 26 to 50 but rather a >>>total of 0 (zero) found items... I don't get it and I need your >>>help to understand this one... >>> >>>Claude-- <= Brian C. Fries, BrainScan Software http://www.brainscansoftware.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)
I don't think it can be done when using command-based searching... you need to switch to context-based searching, where you don't send the command=search parameter and the receiving page uses a [search] context. For most uses, this is a better way to go in any case, and in your case it will be necessary.I'm sure there are descriptions of how to do this in the list archives.Once you make the switch to context searhing, you can apply more intelligent coding to the parsing of your formvariables:[text]dept=[formvariables name=woDepartmentdatarq][value]+[/formvariables][/text]then in your search context, you can include the dept variable:[search db=.....&woDepartmentdatarq=[dept]...]- brianAt 3:05 PM 11/27/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] > >...how would you code this to be able to concatenate >(Dept1+Dept2+Dept3 and so on, if they're checked by the user who >performs the search)? > >I'm sure a lot of WebDNA coders on the list would be happy to know >how to handle the checkboxes efficiently. > > > >On Wednesday, November 27, 2002, at 02:55 PM, Brian Fries wrote: > >>Beyond the ability to send this long of a URL (which you can't, as >>others have pointed out), there are problems with your original >>search that are compounding your difficulties. Namely, you cannot >>directly search the same field via multiple DATA parameters. And >>even if you could, you would get no found items because every one >>of your woDepartmentdatarq requires a match, and clearly they >>can't all match. >> >>Instead of multiple woDepartmentdatarq parameters, they should >>all be merged into one parameter with multiple values, like this: >> >>&woDepartmentdatarq=DE10+DE20+DE30+DE40+....+DE200 >> >>In addition to searching properly, this would shorten the generated >>URL considerably. >> >>- brian >> >>At 1:36 PM 11/27/2002, Claude Gelinas wrote: >>>Hello Everyone, >>> >>>I need to know if the following WebDNA URL is too long to be >>>interpreted correctly: >>> >>>http://www.mydomain.com/ >>>Employers.max?command=search&command=search&db=Candidates.db&Candidate >>>ID >>>sort=1&CandidateIDsdir=de&S=1&SA=EmployersCS1&L=En&EmployerID=329- >>>WED- >>>173942&SearchType=Keywords&group1field=CandidateID%2BFirstNameM%2BLast >>>na >>>meM%2BAliasNameM%2BEmailM%2BAliasEmailM%2BAddressM%2BPhoneM%2BSloganEn >>>%2 >>>BWorkExperienceEn%2BEducationEn%2BProfessionalSkillsEn%2BTechnicalSkil >>>ls >>>KeywordsEn%2BGeoCoverageKeywordsM&wagroup1datarq=&waOccupationalKeywor >>>ds >>>Mdatarq=&waGeoCoverageKeywordsMdatarq=&eqLandatarq=En&x=11&y=5&woDepar >>>tm >>>entdatarq=DE10&woDepartmentdatarq=DE20&woDepartmentdatarq=DE30&woDepar >>>tm >>>entdatarq=DE40&woDepartmentdatarq=DE50&woDepartmentdatarq=DE60&woDepar >>>tm >>>entdatarq=DE70&woDepartmentdatarq=DE80&woDepartmentdatarq=DE90&woDepar >>>tm >>>entdatarq=DE100&woDepartmentdatarq=DE110&woDepartmentdatarq=DE120&woDe >>>pa >>>rtmentdatarq=DE130&woDepartmentdatarq=DE140&woDepartmentdatarq=DE150&w >>>oD >>>epartmentdatarq=DE210&woDepartmentdatarq=DE160&woDepartmentdatarq=DE17 >>>0& >>>woDepartmentdatarq=DE180&woDepartmentdatarq=DE190&woDepartmentdatarq=D >>>E2 00&max=25&startAt=26 >>> >>>It's exactly 1,051 characters long and is created after a >>>[shownext] command in which I ask to go to the following URL: >>>Employers.max?command=search&[searchString] >>> >>>Assuming there were 25 results on the first page, would anyone of >>>you know why I'm not getting a list from 26 to 50 but rather a >>>total of 0 (zero) found items... I don't get it and I need your >>>help to understand this one... >>> >>>Claude-- <= Brian C. Fries, BrainScan Software http://www.brainscansoftware.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/ Brian Fries

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:

WebCommerce: Folder organization ? (1997) WCS Newbie question (1997) Not really WebCat- (1997) read and write you own cookies with webcat (1997) Hosting Services (1999) New Web Site Developers Database (1996) form to search page (2000) [isfile] ? (1997) WebCat2b13MacPlugin - [math][date][/math] problem (1997) all records returned. (1997) ShowIf variables (1997) accountnum using [listwords] (2001) My URL, Your URL (2002) dates and hex formatting (1997) Location of Browser Info.txt file (1997) [math] are you there? (1999) wrong input values? (1997) RE: textA and Title? (1997) Interactive Online Docs Was: [OT] Mozilla | Was: R.I.P. (2003) Combining Searches (1998)