Re: [WebDNA] sort parameters in search

This WebDNA talk-list message is from

2015


It keeps the original formatting.
numero = 111845
interpreted = N
texte = Just believe me when I say Webdna expects sort1, sort2, etc with no break in= the pattern. I didn't mean for you to write test code. I'm in still in bed a= nd on my iPad so it's not possible for me to copy and paste from my code on m= y computer. I meant if anyone wanted to confirm, that you can just open some= template with a search with a few sorts and dink around. Sent from my iPad > On Jan 12, 2015, at 7:57 AM, Donovan Brooke wrote: >=20 > Terry, I don=E2=80=99t personally have much time these days to write out m= y own test code for other peoples issues. >=20 > However, I am trying to help. Maybe someone else can test this. >=20 > Sincerely, > Donovan >=20 >=20 >=20 >=20 >> On Jan 12, 2015, at 9:55 AM, Terry Wilson wrote: >>=20 >> My guess is that sort1 is looked for, and if not found, no further sortin= g is investigated. Likewise when there's no sort2, etc. You can easily try t= his out on one of your own searches. >>=20 >> Sent from my iPad >>=20 >>> On Jan 12, 2015, at 7:12 AM, Donovan Brooke wrote: >>>=20 >>> Hi Terry, >>>=20 >>> Are you saying later sort params get ignored if prior sort params don=E2= =80=99t apply? >>>=20 >>> Can you post a test template and your desired results? >>>=20 >>> Donovan >>>=20 >>>=20 >>>=20 >>>=20 >>>=20 >>>=20 >>>> On Jan 11, 2015, at 11:06 PM, Terry Wilson wrote: >>>>=20 >>>> I'd really to see the sort parameters in [search] sort regardless of th= e specified number. How do I explain this. >>>>=20 >>>> &fieldAsort=3D1&fieldBsort=3D2&fieldCsort=3D3&fieldDsort=3D4 >>>>=20 >>>> But I only need fieldA to lead the sort for one condition. So unless th= at comes up, I just hide fieldAsort=3D1 like so: >>>>=20 >>>> [showif [specialcase]=3Dt]&fieldAsort=3D1[/showif]&fieldBsort=3D2&field= Csort=3D3&fieldDsort=3D4 >>>>=20 >>>> This comes up from time to time, and actually right now it's coming up f= or me again and as usual, I have to showif/hideif the entire sort string for= each condition instead of just slipping in the one that I need for certain c= ases. >>>>=20 >>>> [showif [specialcase]=3Dt]&fieldAsort=3D1&fieldBsort=3D2&fieldCsort=3D3= &fieldDsort=3D4[/showif] >>>> [hideif [specialcase]=3Dt]&fieldBsort=3D1&fieldCsort=3D2&fieldDsort=3D3= [/hideif] >>>>=20 >>>> kind of a pain in the ass when you're still deciding what to best sort o= n - now you have 2 places to futz with as you refine. >>>>=20 >>>> Bonus points to also let those numbers be decimal. Let's say sometimes y= ou need an additional sort in the middle. Throw a showif on fieldZsort=3D2.5= as needed: >>>>=20 >>>> &fieldAsort=3D1&fieldBsort=3D2&fieldZsort=3D2.5&fieldCsort=3D3&fieldDso= rt=3D4--------------------------------------------------------- >>>> This message is sent to you because you are subscribed to >>>> the mailing list . >>>> To unsubscribe, E-mail to: >>>> archives: http://mail.webdna.us/list/talk@webdna.us >>>> Bug Reporting: support@webdna.us >>>=20 >>> --------------------------------------------------------- >>> This message is sent to you because you are subscribed to >>> the mailing list . >>> To unsubscribe, E-mail to: >>> archives: http://mail.webdna.us/list/talk@webdna.us >>> Bug Reporting: support@webdna.us >> --------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us >> Bug Reporting: support@webdna.us >=20 > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > Bug Reporting: support@webdna.us Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] sort parameters in search (Donovan Brooke 2015)
  2. Re: [WebDNA] sort parameters in search (Terry Wilson 2015)
  3. Re: [WebDNA] sort parameters in search ("Psi Prime Inc, Matthew A Perosi " 2015)
  4. Re: [WebDNA] sort parameters in search (Terry Wilson 2015)
  5. Re: [WebDNA] sort parameters in search (Terry Wilson 2015)
  6. Re: [WebDNA] sort parameters in search (Donovan Brooke 2015)
  7. Re: [WebDNA] sort parameters in search (Terry Wilson 2015)
  8. Re: [WebDNA] sort parameters in search (Terry Wilson 2015)
  9. Re: [WebDNA] sort parameters in search (Terry Wilson 2015)
  10. Re: [WebDNA] sort parameters in search (Donovan Brooke 2015)
  11. Re: [WebDNA] sort parameters in search (Terry Wilson 2015)
  12. Re: [WebDNA] sort parameters in search (Donovan Brooke 2015)
  13. [WebDNA] sort parameters in search (Terry Wilson 2015)
Just believe me when I say Webdna expects sort1, sort2, etc with no break in= the pattern. I didn't mean for you to write test code. I'm in still in bed a= nd on my iPad so it's not possible for me to copy and paste from my code on m= y computer. I meant if anyone wanted to confirm, that you can just open some= template with a search with a few sorts and dink around. Sent from my iPad > On Jan 12, 2015, at 7:57 AM, Donovan Brooke wrote: >=20 > Terry, I don=E2=80=99t personally have much time these days to write out m= y own test code for other peoples issues. >=20 > However, I am trying to help. Maybe someone else can test this. >=20 > Sincerely, > Donovan >=20 >=20 >=20 >=20 >> On Jan 12, 2015, at 9:55 AM, Terry Wilson wrote: >>=20 >> My guess is that sort1 is looked for, and if not found, no further sortin= g is investigated. Likewise when there's no sort2, etc. You can easily try t= his out on one of your own searches. >>=20 >> Sent from my iPad >>=20 >>> On Jan 12, 2015, at 7:12 AM, Donovan Brooke wrote: >>>=20 >>> Hi Terry, >>>=20 >>> Are you saying later sort params get ignored if prior sort params don=E2= =80=99t apply? >>>=20 >>> Can you post a test template and your desired results? >>>=20 >>> Donovan >>>=20 >>>=20 >>>=20 >>>=20 >>>=20 >>>=20 >>>> On Jan 11, 2015, at 11:06 PM, Terry Wilson wrote: >>>>=20 >>>> I'd really to see the sort parameters in [search] sort regardless of th= e specified number. How do I explain this. >>>>=20 >>>> &fieldAsort=3D1&fieldBsort=3D2&fieldCsort=3D3&fieldDsort=3D4 >>>>=20 >>>> But I only need fieldA to lead the sort for one condition. So unless th= at comes up, I just hide fieldAsort=3D1 like so: >>>>=20 >>>> [showif [specialcase]=3Dt]&fieldAsort=3D1[/showif]&fieldBsort=3D2&field= Csort=3D3&fieldDsort=3D4 >>>>=20 >>>> This comes up from time to time, and actually right now it's coming up f= or me again and as usual, I have to showif/hideif the entire sort string for= each condition instead of just slipping in the one that I need for certain c= ases. >>>>=20 >>>> [showif [specialcase]=3Dt]&fieldAsort=3D1&fieldBsort=3D2&fieldCsort=3D3= &fieldDsort=3D4[/showif] >>>> [hideif [specialcase]=3Dt]&fieldBsort=3D1&fieldCsort=3D2&fieldDsort=3D3= [/hideif] >>>>=20 >>>> kind of a pain in the ass when you're still deciding what to best sort o= n - now you have 2 places to futz with as you refine. >>>>=20 >>>> Bonus points to also let those numbers be decimal. Let's say sometimes y= ou need an additional sort in the middle. Throw a showif on fieldZsort=3D2.5= as needed: >>>>=20 >>>> &fieldAsort=3D1&fieldBsort=3D2&fieldZsort=3D2.5&fieldCsort=3D3&fieldDso= rt=3D4--------------------------------------------------------- >>>> This message is sent to you because you are subscribed to >>>> the mailing list . >>>> To unsubscribe, E-mail to: >>>> archives: http://mail.webdna.us/list/talk@webdna.us >>>> Bug Reporting: support@webdna.us >>>=20 >>> --------------------------------------------------------- >>> This message is sent to you because you are subscribed to >>> the mailing list . >>> To unsubscribe, E-mail to: >>> archives: http://mail.webdna.us/list/talk@webdna.us >>> Bug Reporting: support@webdna.us >> --------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us >> Bug Reporting: support@webdna.us >=20 > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > Bug Reporting: support@webdna.us Terry Wilson

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:

Problems with date math (1997) Shopping Cart ID (1998) RE: Include (1998) Limiting user access to .tmpl files (1997) default value from Lookup (was Grant, please help me) (1997) Copyright that puppy (1998) Email notification to one of multiple vendors ? (1997) Processing all html files through WebCat or Typhoon (1998) shipcost (1997) Credit card types (1997) Location of Browser Info.txt file (1997) Variable prices and Formulas.db (1997) can WC render sites out? (1997) Frustration with formulas.db (1999) [isfile] ? (1997) numfound=0 for a search after going into the SSL (2003) How does WebCatalog search the database? (1997) WebCat2b15MacPlugin - showing [math] (1997) Capturing the referring site (1999) Summing fields (1997)