Re: [WebDNA] numTDsPerTR_onTheFly

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 104875
interpreted = N
texte = yes, oops, change every instance of [numProdImgsPerRow] to [numItemsPerRow]. thanks! -G On Feb 25, 2010, at 4:43 PM, Marc Thompson wrote: > 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 > ------------------------------------------- > --------------------------------------------------------- > 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 ------------ Govinda govinda.webdnatalk@gmail.com 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)
yes, oops, change every instance of [numProdImgsPerRow] to [numItemsPerRow]. thanks! -G On Feb 25, 2010, at 4:43 PM, Marc Thompson wrote: > 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 > ------------------------------------------- > --------------------------------------------------------- > 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 ------------ Govinda govinda.webdnatalk@gmail.com 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:

Emailer and encryption (1997) select multiple 2 more cents (1997) ssl support WDNA 5.0 (2003) WebCat2b13MacPlugIn - More limits on [include] (1997) Altavista has got virus infection! (1998) WebDNA Server Not Running (2005) Last Record not recognized? (1999) calculating tax rates, mail order solutions and version 2 (1997) WebCatalog can't find database (1997) Webten + Webcat running smooth (1998) Platform differences Commitdatabases (2000) Parameter Passing (2000) Price override - solved (2004) Size images (2002) First postarg not taking in $Commands (1997) How can I record purchases to a database? (1998) errormessages.db (1997) Kaaaaahhhhhhhnnnnnnn! (1997) Re:quit command on NT (1997) Search design (1997)