Re: [WebDNA] sort parameters in search
This WebDNA talk-list message is from 2015
It keeps the original formatting.
numero = 111841
interpreted = N
texte = Hi Terry,Are you saying later sort params get ignored if prior sort params don=92t =apply?Can you post a test template and your desired results?DonovanOn Jan 11, 2015, at 11:06 PM, Terry Wilson
wrote:> I'd really to see the sort parameters in [search] sort regardless of =the 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 =that comes up, I just hide fieldAsort=3D1 like so:>=20> [showif =[specialcase]=3Dt]&fieldAsort=3D1[/showif]&fieldBsort=3D2&fieldCsort=3D3&f=ieldDsort=3D4>=20> This comes up from time to time, and actually right now it's coming up =for 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 cases.>=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 =on - 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 =you 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&fieldDsort=3D=4---------------------------------------------------------> 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:
Hi Terry,Are you saying later sort params get ignored if prior sort params don=92t =apply?Can you post a test template and your desired results?DonovanOn Jan 11, 2015, at 11:06 PM, Terry Wilson wrote:> I'd really to see the sort parameters in [search] sort regardless of =the 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 =that comes up, I just hide fieldAsort=3D1 like so:>=20> [showif =[specialcase]=3Dt]&fieldAsort=3D1[/showif]&fieldBsort=3D2&fieldCsort=3D3&f=ieldDsort=3D4>=20> This comes up from time to time, and actually right now it's coming up =for 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 cases.>=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 =on - 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 =you 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&fieldDsort=3D=4---------------------------------------------------------> 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
Donovan Brooke
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:
Tcp connect (2002)
[WebDNA] "commerce tags" versus "shopping" tags? (specifically (2009)
[WebDNA] WebDNA app (2013)
The Guru Speaks-Is That Really the Only Manuel? (1998)
[WebDNA] Populating a menu from a search (2016)
Frames and WebCat (1997)
PROBLEM (1997)
[ModDate] & [ModTime] ? (1997)
Emailer setup (1997)
New random discoveries? (2005)
Search Combining Problem (2004)
NT or Mac (1997)
Robert Minor duplicate mail (1997)
Share Bulletin Board? (1998)
[OT] Half completed orders (2005)
[WebDNA] [WSC] WebDNA Development Summit (2014)
[writefile] (1997)
details (2003)
Setting a text Var inside an orderfile (2002)
unable to launch acgi in WebCat (1997)