[WebDNA] numTDsPerTR_onTheFly

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 104872
interpreted = N
texte = Obviously 90% of you on this list have long since written your own version of this.. but for the archives.. here is a starter humble offering to temporarily hold over my own desire to give significantly on this list. This is code to take a collection of items returned by a search and spit them out to an HTML table, as many 's per as you like. Just set the number assigned to [numItemsPerRow] on the first line to whatever you want. -Govinda = ======================================================================== [text show=F]numItemsPerRow=4[/text][!]<---Change this number to however many items per row you want-[/!] [search db=your.db&eqSearchCriteriadatarq=[blah]&asFieldsort=1]  [text show=F]row=closed[/text] [founditems] [showif [row]=closed] [text show=F]row=open[/text] [text show=F]numCellsThisRow=0[/text]  [/showif] [text show=F]numCellsThisRow=[math show=T][numCellsThisRow]+1[/math] [/text]  [showif [index]\[numProdImgsPerRow]] [text show=F]row=closed[/text] [text show=F]numCellsThisRow=0[/text]  [/showif] [/founditems] [showif [URL][row][/URL]=open] [showif [URL][numCellsThisRow][/URL]<[numProdImgsPerRow]]  [/showif]  [/showif] 
[!]---cell content---[/!] 
 
[/search] Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] numTDsPerTR_onTheFly (Govinda 2010)
  2. Re: [WebDNA] numTDsPerTR_onTheFly (Marc Thompson 2010)
  3. [WebDNA] numTDsPerTR_onTheFly (Govinda 2010)
Obviously 90% of you on this list have long since written your own version of this.. but for the archives.. here is a starter humble offering to temporarily hold over my own desire to give significantly on this list. This is code to take a collection of items returned by a search and spit them out to an HTML table, as many 's per as you like. Just set the number assigned to [numItemsPerRow] on the first line to whatever you want. -Govinda = ======================================================================== [text show=F]numItemsPerRow=4[/text][!]<---Change this number to however many items per row you want-[/!] [search db=your.db&eqSearchCriteriadatarq=[blah]&asFieldsort=1]  [text show=F]row=closed[/text] [founditems] [showif [row]=closed] [text show=F]row=open[/text] [text show=F]numCellsThisRow=0[/text]  [/showif] [text show=F]numCellsThisRow=[math show=T][numCellsThisRow]+1[/math] [/text]  [showif [index]\[numProdImgsPerRow]] [text show=F]row=closed[/text] [text show=F]numCellsThisRow=0[/text]  [/showif] [/founditems] [showif [url][row][/URL]=open] [showif [url][numCellsThisRow][/URL]<[numProdImgsPerRow]]  [/showif]  [/showif] 
[!]---cell content---[/!] 
 
[/search] Govinda

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:

Possible Bug in 2.0b15.acgi (1997) WebDNA Solutions ... sorry! (1997) Bug Report, maybe (1997) RE: [WebDNA] webdna.us (2008) Suggestion to expand [convertchars] ... (2000) Text limits in NT version? (1997) Public beta 2 for WebCatalog 4.0 is now available. (2000) Limit on nested [ShowIf]'s? (1997) international time (1997) Include Files (1998) Bizarre ISAPI vs. EXE Behavior with WebSite (1999) Calculating multiple shipping... (1997) Temporary Serial Numbers for the Beta (2000) Banners (1997) random prob (2003) WC2b15 - [HTMLx]...[/HTMLx] problems (1997) Emailer choke (1997) change the number format (1997) Projects & Contractors (1997) Word wrapping (1997)