Re: [WebDNA] Dynamic vertical columns
This WebDNA talk-list message is from 2008
It keeps the original formatting.
numero = 100641
interpreted = N
texte = ChrisThat code is similar to Terry's, yours is for 4 columns.Both these methods leave uneven numbers in the columns is your [numfound] is not exactly divisible by 4, for instance if you have 70 found items you will get columns of:18 | 17 | 18 | 17The method I posted will give you18 | 18 | 18 | 16It depends on how you like the columns to fallOn 03/09/2008, at 2:28 AM, PLANET DJ (Chris W.) wrote:> Well, mine's coded like this for 3 columns:>> [search...]>
> > > [foundItems]> [field1] > [showif [index]=[math]ceil([numFound] / 4)[/math]] | valign=top>[/showif]> [showif [index]=[math]ceil([numFound] / 2)[/math]] | valign=top>[/showif]> [showif [index]=[math]ceil([numFound]-([numFound] / 4))[/math]] > td> | [/showif]> [/foundItems]> |
>> [/search]>> Best Regards,>> Chris Whybrew> Senior Account Manager>>> PLANET DJ INC> www.planetdj.com>> p: 775.323.1540 ext 3903> f: 775.323.8230> e: chrisw@planetdj.com>>> From: "Stuart Tremain"
> Sent: Sunday, August 31, 2008 5:16 PM> To: talk@webdna.us> Subject: [WebDNA] Dynamic vertical columns>> Start of Spring here in Aus today - at last :)>> I know how to build dynamic tables where the results are posted> horizontally. Does anyone have a trick for building the columns> vertically?>> From this:>> HEAD01 | HEAD02 | HEAD03 | HEAD04> 01 | 02 | 03 | 04> 05 | 06 | 07 | 08>>> to this:>> HEAD01 | HEAD02 | HEAD03 | HEAD04> 01 | 03 | 05 | 07> 02 | 04 | 06 | 08>>>>> Regards>> Stuart Tremain> IDFK Web Developments> AUSTRALIA> webdna@idfk.com.au>>>>> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to:>
Associated Messages, from the most recent to the oldest:
ChrisThat code is similar to Terry's, yours is for 4 columns.Both these methods leave uneven numbers in the columns is your [numfound] is not exactly divisible by 4, for instance if you have 70 found items you will get columns of:18 | 17 | 18 | 17The method I posted will give you18 | 18 | 18 | 16It depends on how you like the columns to fallOn 03/09/2008, at 2:28 AM, PLANET DJ (Chris W.) wrote:> Well, mine's coded like this for 3 columns:>> [search...]> > > > [founditems]> [field1] > [showif [index]=[math]ceil([numFound] / 4)[/math]] | valign=top>[/showif]> [showif [index]=[math]ceil([numFound] / 2)[/math]] | valign=top>[/showif]> [showif [index]=[math]ceil([numFound]-([numFound] / 4))[/math]] > td> | [/showif]> [/foundItems]> |
>> [/search]>> Best Regards,>> Chris Whybrew> Senior Account Manager>>> PLANET DJ INC> www.planetdj.com>> p: 775.323.1540 ext 3903> f: 775.323.8230> e: chrisw@planetdj.com>>> From: "Stuart Tremain" > Sent: Sunday, August 31, 2008 5:16 PM> To: talk@webdna.us> Subject: [WebDNA] Dynamic vertical columns>> Start of Spring here in Aus today - at last :)>> I know how to build dynamic tables where the results are posted> horizontally. Does anyone have a trick for building the columns> vertically?>> From this:>> HEAD01 | HEAD02 | HEAD03 | HEAD04> 01 | 02 | 03 | 04> 05 | 06 | 07 | 08>>> to this:>> HEAD01 | HEAD02 | HEAD03 | HEAD04> 01 | 03 | 05 | 07> 02 | 04 | 06 | 08>>>>> Regards>> Stuart Tremain> IDFK Web Developments> AUSTRALIA> webdna@idfk.com.au>>>>> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to:>
Stuart Tremain
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:
Roundup (2001)
Shipping charges depending on tax rate? (1997)
Multiple Users.db Possible? (1997)
WebCat2: Items xx to xx shown, etc. (1997)
RE: type 2 errors with ssl server (1997)
Introduction/Tutorial/QuickStart (1997)
[math] show=F exists? (1997)
Handy Browser Counter Tip (1997)
using showpage and showcart commands (1996)
How does the Globals folder work? (2000)
[isfile] ? (1997)
New Command prefs ... (1997)
ANother SHOWIF problem (1997)
[WebDNA] Problem with administration (2009)
Re:Frames and cart values (1998)
RE: MacFinder -- a new WebDNA web site (1998)
Banners (1997)
A quickie question (1997)
Sorting LISTFILES (1997)
can we get string variables? (1998)