Re: long list formatted in a table

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 59149
interpreted = N
texte = 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=de&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/ 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)
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=de&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/ Joe D'Andrea

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:

PROBLEM (1997) keep W* in front applescript? (1998) WebCat2 - [format thousands] (1997) Cookies and webcat (1997) WebCatalog NT (1996) TCPConnect (2002) Help name our technology! (1997) TRAINING videos - Prove IT. (1998) Check Boxes (2000) Not really WebCat- (1997) Moment of Thanks (1997) Stumped on ShipCosts.db Problem (2000) Documentation Feedback (1997) Announcing general availabilty of WebDNA 4.5 release (2002) [BoldWords] WebCat.acgib15Mac (1997) Help!!!! (1997) [Sum] function? (1997) European dates (1998) WC2.0 Memory Requirements (1997) Using Plug-In while running 1.6.1 (1997)