Re: long list formatted in a table

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 59150
interpreted = N
texte = I have used this technique successfully for years now, but always secretly questioned the logic of it -- i.e. isn't *everything* divisible by 10, or whatever number you are using? Any takers? And begin... -Dan On Tue, 24 Aug 2004 11:43:17 -0400 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=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/ ------------------------------------------------------------- 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)
I have used this technique successfully for years now, but always secretly questioned the logic of it -- i.e. isn't *everything* divisible by 10, or whatever number you are using? Any takers? And begin... -Dan On Tue, 24 Aug 2004 11:43:17 -0400 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=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/ ------------------------------------------------------------- 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:

expired beta (1997) [OT] Form POSTing with LONG variable (2007) .htaccess to make WebDNA serve HTML (2007) japanese characters (1997) quit command on NT (1997) [delete .. &max=] (2004) Configuring E-mail (1997) ANother SHOWIF problem (1997) Re:Can this be done? (1997) WebDNA Solutions ... sorry! (1997) [WebDNA] Admin Login Required to Serve any TPL Page (2009) Search in 2 or more catalogs (1997) Download capabilities (1997) problems with 2 tags shakur (1997) WebCatalog 4 Install Problems - Not Answered ?? (2000) Question on TABLES (2003) How to put the Trademark Symbol (%99) in Sendmail? (2003) [WebDNA] Email time bug? YES, it's a bug! (2011) [addlineitems] (1997) HTML docs are wrong about listwords ... (2000)