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!chrisOn 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]> [n_factura_rte] | > [showif [index]\10]>
> [/showif]> [/FoundItems]> [hideif [numfound]\10]
[/hideif]>
> [/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:
Thank you for this great code!chrisOn 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]> [n_factura_rte] | > [showif [index]\10]>
> [/showif]> [/FoundItems]> [hideif [numfound]\10]
[/hideif]>
> [/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:
WebCat2: Items xx to xx shown, etc. (1997)
Expert tech support -- a fast and simple solution (long) ... (2000)
Search results templates (1996)
$Quit, $CloseDatabase corrections (1997)
Emailer problems. (1998)
WebDNA Solutions ... sorry! (1997)
Size limit for tmpl editor ? (1997)
Authenticate (1997)
surf express & webcat (1998)
URGENT! ACGI Stopped!!!! (1997)
WebCat 5 on itools 7 Install Questions Problems Hey Nitai (2003)
HTML encoding in URLs (1997)
RE:It just Does't add up!!! (1997)
BR (1997)
Signal Raised Error (1997)
WEBDNA tags don't process in a .js file (2002)
Attn: Bug in GeneralStore example b15 (1997)
[Sum] function? (1997)
Temp license (2005)
Plugin or CGI or both (1997)