Re: Showing Results Alphabetically in Columns (top to bottom)

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 46187
interpreted = N
texte = Kimberly D. Walls (Ingram) wrote:> Surely, someone has found a way to make this happen... but I can't seem to > find anything in the archives. Probably because I don't know what to look > for. > > >I think you will want to use the numfound peram along with the max peram. I haven't tested this so it might need a little debugging. (you will want to choose your [the_max] amount which is the maximum number of results you can have in any of the 3 collums.) [showif [count]<3] >I think you will want to use the numfound peram along with the max peram. I haven't tested this so it might need a little debugging. (you will want to choose your [the_max] amount which is the maximum number of results you can have in any of the 3 collums.)
[search db=database.txt&wscommitteedatarq=[committeesku]&lnamesort=1&lnamesdir=as&max=[the_max]][if ([numfound]\3)>[the_max]][then] [text]divider=[math][the_max]\3[/math][/text] [/then][else] [text]divider=[math][numfound]\3[/math][/text] [/else] [/if][text]count=0[/text] [founditems] [showif [index]\[divider]][text]count=[math][count]+1[/math][/text]
[fname] [lname]
[/showif][/showif][/founditems][/search]
Let me know if you get it working. :-)Donovan> > brings back results in three columns... but alphabetically from left to > right across the columns. How would I go about showing results in > alphabetical order from top to bottom? > > So instead of: > > A B C > > D E F > > I would like to have: > > A C E > > B D F > > I'm stuck. > > Kim > ------------------------------------------------------------- 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: Showing Results Alphabetically in Columns (top to bottom) (Kimberly D. Walls \(Ingram\) 2002)
  2. Re: Showing Results Alphabetically in Columns (top to bottom) (Donovan 2002)
  3. Re: Showing Results Alphabetically in Columns (top to bottom) (WJ Starck 2002)
  4. Re: Showing Results Alphabetically in Columns (top to bottom) (Rob Marquardt 2002)
  5. Re: Showing Results Alphabetically in Columns (top to bottom) (WJ Starck 2002)
  6. Re: Showing Results Alphabetically in Columns (top to bottom) (WJ Starck 2002)
  7. Re: Showing Results Alphabetically in Columns (top to bottom) (Kimberly D. Walls \(Ingram\) 2002)
  8. Re: Showing Results Alphabetically in Columns (top to bottom) (Kimberly D. Walls \(Ingram\) 2002)
  9. Re: Showing Results Alphabetically in Columns (top to bottom) (WJ Starck 2002)
  10. Re: Showing Results Alphabetically in Columns (top to bottom) (Andrew Simpson 2002)
  11. Re: Showing Results Alphabetically in Columns (top to bottom) (Donovan Brooke 2002)
  12. Re: Showing Results Alphabetically in Columns (top to bottom) (WJ Starck 2002)
  13. Re: Showing Results Alphabetically in Columns (top to bottom) (Andrew Simpson 2002)
  14. Re: Showing Results Alphabetically in Columns (top to bottom) (Tim Robinson 2002)
  15. Re: Showing Results Alphabetically in Columns (top to bottom) (Andrew Simpson 2002)
  16. Re: Showing Results Alphabetically in Columns (top to bottom) (Donovan Brooke 2002)
  17. Re: Showing Results Alphabetically in Columns (top to bottom) (Donovan Brooke 2002)
  18. Re: Showing Results Alphabetically in Columns (top to bottom) (Inkblot Media 2002)
  19. Re: Showing Results Alphabetically in Columns (top to bottom) (Donovan Brooke 2002)
  20. Re: Showing Results Alphabetically in Columns (top to bottom) (Inkblot Media 2002)
  21. Re: Showing Results Alphabetically in Columns (top to bottom) (Andrew Simpson 2002)
  22. Re: Showing Results Alphabetically in Columns (top to bottom) (Andrew Simpson 2002)
  23. Re: Showing Results Alphabetically in Columns (top to bottom) (Kimberly D. Walls \(Ingram\) 2002)
  24. Re: Showing Results Alphabetically in Columns (top to bottom) (Andrew Simpson 2002)
  25. Showing Results Alphabetically in Columns (top to bottom) (Kimberly D. Walls \(Ingram\) 2002)
Kimberly D. Walls (Ingram) wrote:> Surely, someone has found a way to make this happen... but I can't seem to > find anything in the archives. Probably because I don't know what to look > for. > >
[showif [count]<3]
[search db=database.txt&wscommitteedatarq=[committeesku]&lnamesort=1&lnamesdir=as&max=[the_max]][if ([numfound]\3)>[the_max]][then] [text]divider=[math][the_max]\3[/math][/text] [/then][else] [text]divider=[math][numfound]\3[/math][/text] [/else] [/if][text]count=0[/text] [founditems] [showif [index]\[divider]][text]count=[math][count]+1[/math][/text]
[fname] [lname]
[/showif][/showif][/founditems][/search]
Let me know if you get it working. :-)Donovan> > brings back results in three columns... but alphabetically from left to > right across the columns. How would I go about showing results in > alphabetical order from top to bottom? > > So instead of: > > A B C > > D E F > > I would like to have: > > A C E > > B D F > > I'm stuck. > > Kim > ------------------------------------------------------------- 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/ 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:

[listfiles] problems (1997) WebCat editing, SiteGuard & SiteEdit (1997) RE: NewCart+Search with one click ? (1997) [WebDNA] PHP Array translated to Webdna (2010) flushing databases (2003) Creating folders and deleting files (1997) Generating Report Totals (1997) OOps - Diners Club card problems (1999) PCS Emailer's role ? (1997) Navigator 4.01 (1997) Emailer (2005) many-to-one problem (1998) Problems with webcat 2.01 for NT (1997) Setting up shop (1997) shownext & searchstring (2000) Carts & Refering URLs (1997) Mozilla/4. and Browser Info.txt (1997) Document Contains No Data! (1997) Summing fields (1997) Problems passing [SKU] with $Replace in 2.0 (1997)