Re: long list formatted in a table

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 59152
interpreted = N
texte = Thank you for this great code! chris On Aug 24, 2004, at 12:43, Joe D'Andrea wrote: > At 12:17 PM -0300 8/24/04, Christophe Billiottet wrote: >> Such a list is unaesthetic and i would like to present the result as >> a table, for instance a 30 row per 10 columns table. Is there any >> known way to do this? > > > Of course! > > [Search > db=bases.db&nefacturadata=0&facturasort=1&facturatype=num&facturasdir=d > e&max=300] > > > [FoundItems] > > [showif [index]\10] > > [/showif] > [/FoundItems] > [hideif [numfound]\10][/hideif] >
[n_factura_rte]
> [/search] > > Explanation: First, move the original ... outside of the > founditems loop. The founditems loop keeps track of which founditem > you currently are focused on. The backslash operator in the showif > comparison says "is divisible by", i.e., "is [index] divisible by 10?" > If so, close out the current table row and begin a new one. > > The last comparison makes sure that there is not an extraneous > in the case when the number of items returned is also divisible by 10. > > Enjoy! > ~joe > > > ------------------------------------------------------------- > 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: long list formatted in a table ( Chris 2004)
  2. Re: long list formatted in a table ( John Peacock 2004)
  3. Re: long list formatted in a table ( "Dan Strong" 2004)
  4. Re: long list formatted in a table ( Joe D'Andrea 2004)
  5. long list formatted in a table ( Chris 2004)
Thank you for this great code! chris On Aug 24, 2004, at 12:43, Joe D'Andrea wrote: > At 12:17 PM -0300 8/24/04, Christophe Billiottet wrote: >> Such a list is unaesthetic and i would like to present the result as >> a table, for instance a 30 row per 10 columns table. Is there any >> known way to do this? > > > Of course! > > [Search > db=bases.db&nefacturadata=0&facturasort=1&facturatype=num&facturasdir=d > e&max=300] > > > [founditems] > > [showif [index]\10] > > [/showif] > [/FoundItems] > [hideif [numfound]\10][/hideif] >
[n_factura_rte]
> [/search] > > Explanation: First, move the original ... outside of the > founditems loop. The founditems loop keeps track of which founditem > you currently are focused on. The backslash operator in the showif > comparison says "is divisible by", i.e., "is [index] divisible by 10?" > If so, close out the current table row and begin a new one. > > The last comparison makes sure that there is not an extraneous > in the case when the number of items returned is also divisible by 10. > > Enjoy! > ~joe > > > ------------------------------------------------------------- > 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/ Christophe Billiottet

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:

WebDNA Fusebox was (European Convention) (2004) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) Training Videos for 3.0 (1998) Document Contains No Data! (1997) Stinkin' [Referrer] (1998) Another bug to squash (WebCat2b13 Mac .acgi) (1997) Re[4]: Problem with new formvariables (2000) Looking for WebCat developer/contractor (2000) Bug or syntax error on my part? (1997) WebCatalog NT beta 18 problem (1997) help (2001) Help formatting search results w/ table (1997) help with duplicate records posted (1998) how to include a name in from or to using Sendmail? (2003) Server slowing down. (1997) WebCat2b15MacPlugin - [protect] (1997) Math Problem - Format? (1997) Everyone: List Traffic (was [include ...] behavior) (1997) Authenticate (2000) WebDNA Module with Apache 2.2 (2006)