Re: Sorting... stumped.

This WebDNA talk-list message is from

2006


It keeps the original formatting.
numero = 63779
interpreted = N
texte = Whoops, alphabetical won't work I should have laid off the sauce in kindergarten..)... so now I'm back to square one... any ideas? temp db? -Dan On Sun, 08 Jan 2006 10:31:09 -0800 "Dan Strong" wrote: > Need to sort results using a field that contains only the following 3 values in each record T, Q >& N. > > Client wants sort order as follows: > If T is chosen, then sort TQN > If Q is chosen then sort QTN > If N is chosen then sort NTQ > > No prob if T or N is chosen. I just toggle the sdir=as or sdir=de in the search string as >appropriate and it works alphabetically. But how do I handle it if Q is chosen? > > Sample code: > ------------------ > [!]-- [the-topic] is fed to this code from a different page. Values are either T, Q or N --[/!] > [text >show=f]searchMethod=eqShortCategoryDataRq=[url][p][/url]&neSkuData=[blank]&sortKeyType=num&productTypeSdir=[showif >[the_topic]=T]de[/showif][showif >[the_topic]=N]as[/showif]&productTypeSort=1&sortKeySort=2&catIDsumm=T&allReqd=T[/text] > > How to handle if [the_topic]=Q ???? > -Dan > > ------------------------------------------------------------- > 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/ ------------------------------------------------------------- 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: Sorting... stumped. ( "Dan Strong" 2006)
  2. Re: Sorting... stumped. ( Frank Nordberg 2006)
  3. Re: Sorting... stumped. ( "Dan Strong" 2006)
  4. Re: Sorting... stumped. ( Alex McCombie 2006)
  5. Re: Sorting... stumped. ( "Dan Strong" 2006)
  6. Re: Sorting... stumped. ( Alex McCombie 2006)
  7. Re: Sorting... stumped. ( "Dan Strong" 2006)
  8. Re: Sorting... stumped. ( "Dan Strong" 2006)
  9. Re: Sorting... stumped. ( "Dan Strong" 2006)
  10. Sorting... stumped. ( "Dan Strong" 2006)
Whoops, alphabetical won't work I should have laid off the sauce in kindergarten..)... so now I'm back to square one... any ideas? temp db? -Dan On Sun, 08 Jan 2006 10:31:09 -0800 "Dan Strong" wrote: > Need to sort results using a field that contains only the following 3 values in each record T, Q >& N. > > Client wants sort order as follows: > If T is chosen, then sort TQN > If Q is chosen then sort QTN > If N is chosen then sort NTQ > > No prob if T or N is chosen. I just toggle the sdir=as or sdir=de in the search string as >appropriate and it works alphabetically. But how do I handle it if Q is chosen? > > Sample code: > ------------------ > [!]-- [the-topic] is fed to this code from a different page. Values are either T, Q or N --[/!] > [text >show=f]searchMethod=eqShortCategoryDataRq=[url][p][/url]&neSkuData=[blank]&sortKeyType=num&productTypeSdir=[showif >[the_topic]=T]de[/showif][showif >[the_topic]=N]as[/showif]&productTypeSort=1&sortKeySort=2&catIDsumm=T&allReqd=T[/text] > > How to handle if [the_topic]=Q ???? > -Dan > > ------------------------------------------------------------- > 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/ ------------------------------------------------------------- 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/ "Dan Strong"

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:

FREE Web Server Monitor FREE (1997) [WebDNA] WebDNA 6.2 and Mac OS X 10.5 Client / Server ? (2009) searching by date ranges (2000) [WebDNA] another success story on v7 (2012) WebCatalog for Postcards ? (1997) WebCat2b15MacPlugin - showing [math] (1997) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) syntax question, not in online refernce (1997) Repeating Fields (1997) [WebDNA] checking for mixed case text (2009) Replace context problem ... (1997) select multiple (1997) SQL (2003) international time (1997) Browser Problem?!? POST forms and NN 4.0+ browsers (1997) Fed Ex Rate Charts (2003) PCS Frames (1997) [WebDNA] WebDNA future (2010) Download URL & access on the fly ? (1997) Quit revisited (1997)