Re: [WebDNA] numTDsPerTR_onTheFly

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 104874
interpreted = N
texte = I think you meant for numItemsPerRow to be numProdImgsPerRow instead? ie. [text]numProdImgsPerRow =4[/text] Marc Govinda wrote: > 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] > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ > Bug Reporting: http://forum.webdna.us/eucabb.html?page=topics&category=288 > . > -- ------------------------------------------- Marc Thompson Software Engineer Office of Information Technology University of Utah 801.585.9264 marc.thompson@utah.edu ------------------------------------------- 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)
I think you meant for numItemsPerRow to be numProdImgsPerRow instead? ie. [text]numProdImgsPerRow =4[/text] Marc Govinda wrote: > 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] > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ > Bug Reporting: http://forum.webdna.us/eucabb.html?page=topics&category=288 > . > -- ------------------------------------------- Marc Thompson Software Engineer Office of Information Technology University of Utah 801.585.9264 marc.thompson@utah.edu ------------------------------------------- Marc Thompson

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:

Access Denied! But why? (1997) unsubscribe (1997) WebCatalog [FoundItems] Problem - AGAIN - (1997) Date search and sendmail (1997) WC2b15 - [HTMLx]...[/HTMLx] problems (1997) File Upload (1997) Upgrading old WebCat Database Files (1997) Make sure I understand this??? (1997) Weird problems with [SHOWIF]s (1997) Is WebCat 3.0 necessary for calculating shipping? (2000) normal users.db calls ... (1998) Bug Report, maybe (1997) custom freight charges (2001) What about the fixes that were promised for 5.2 ? (2004) URGENT! ACGI Stopped!!!! (1997) WebMerchant 3.0? (1998) default value from Lookup (was Grant, please help me) (1997) [GREP] Why is the dash invalid? (2002) WC Database Format (1997) Fedora Core 6 (2007)