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!-GOn 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]>> >> [!]---cell content---[/!]>> | >> [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]>>
>> [/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------------Govindagovinda.webdnatalk@gmail.com
Associated Messages, from the most recent to the oldest:
yes, oops, change every instance of [numProdImgsPerRow] to [numItemsPerRow].thanks!-GOn 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]>> >> [!]---cell content---[/!]>> | >> [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]>>
>> [/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------------Govindagovinda.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:
Help! (2000)
WCS Newbie question (1997)
Problems with [Applescript] (1997)
Moment of Thanks (1997)
Location of Webcat site in folder hierarchy (1997)
[BoldWords] WebCat.acgib15Mac (1997)
.html to .tpl (1998)
Robert Minor duplicate mail (1997)
WebCat2b15MacPlugin - [protect] (1997)
Two submit buttons ? (1997)
[WebDNA] Ubuntu 18.04.2 ??? (2019)
Security Tip (1996)
Summing fields (1997)
mac hack (1997)
SendTo more emails (1998)
Date fun with MySQL (2004)
PIXO support (1997)
WC TableGrinder (1997)
[WebDNA] Advanced search 'rq' problem (2013)
Help with dates (2001)