Re: [WebDNA] Dynamic vertical columns
This WebDNA talk-list message is from 2008
It keeps the original formatting.
numero = 100616
interpreted = N
texte = This ALMOST works for me, it is OK for numbers divisible by 3 but falls over with other numbersMaybe someone may be able to help with the maths/uneven colums[Search db=^data/species.db&eqSACTIVEdatarq=T&asSCOMMONNAMEsort=1]Numfound = [NumFound]
[Math]PERCOLUMN=ceil([NumFound]/3)[/Math]
COL 01 | COL 02 | COL 03 |
---|
[FoundItems][ShowIf [Index]<[Math][PERCOLUMN]+1[/ Math]][index] - [SCOMMONNAME] [/ShowIf][/FoundItems] | [FoundItems][If ([Index]>[PERCOLUMN])&([Index]<[Math] [NumFound]-[PERCOLUMN]+1[/Math])][Then][index] - [SCOMMONNAME] [/ Then][/If][/FoundItems] | [FoundItems][ShowIf [Index]>[Math][NumFound]- [PERCOLUMN]-0[/Math]][index] - [SCOMMONNAME] [/ShowIf][/ FoundItems] |
[/Search]RegardsStuart TremainIDFK Web DevelopmentsAUSTRALIAwebdna@idfk.com.auOn 02/09/2008, at 1:21 PM, Dan Strong wrote:> Does the solution need to be tabular? If not, CSS could handle this > fairly well. Granted, tables are much easier for this sort of thing, > but CSS would work. -Dan>>>> On Mon, 1 Sep 2008 09:41:54 +1000> Stuart Tremain
wrote:>> 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: >> ---------------------------------------------------------> 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:
This ALMOST works for me, it is OK for numbers divisible by 3 but falls over with other numbersMaybe someone may be able to help with the maths/uneven colums[Search db=^data/species.db&eqSACTIVEdatarq=T&asSCOMMONNAMEsort=1]Numfound = [NumFound]
[math]PERCOLUMN=ceil([NumFound]/3)[/Math]COL 01 | COL 02 | COL 03 |
---|
[founditems][ShowIf [Index]<[math][PERCOLUMN]+1[/ Math]][index] - [SCOMMONNAME] [/ShowIf][/FoundItems] | [founditems][If ([Index]>[PERCOLUMN])&([Index]<[math] [NumFound]-[PERCOLUMN]+1[/Math])][Then][index] - [SCOMMONNAME] [/ Then][/If][/FoundItems] | [founditems][ShowIf [Index]>[math][NumFound]- [PERCOLUMN]-0[/Math]][index] - [SCOMMONNAME] [/ShowIf][/ FoundItems] |
[/Search]RegardsStuart TremainIDFK Web DevelopmentsAUSTRALIAwebdna@idfk.com.auOn 02/09/2008, at 1:21 PM, Dan Strong wrote:> Does the solution need to be tabular? If not, CSS could handle this > fairly well. Granted, tables are much easier for this sort of thing, > but CSS would work. -Dan>>>> On Mon, 1 Sep 2008 09:41:54 +1000> Stuart Tremain wrote:>> 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: >> ---------------------------------------------------------> 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:
ooops...WebCatalog [FoundItems] Problem - LONG - (1997)
WebCatalog/Mac 2.1b2 New Features (1997)
IE Cache Problems... (1999)
Solution to Back button (2000)
More on the email templates (1997)
Move WebDNA DB to MySQL (2005)
[ConvertChars] problem (1997)
WebCat2 - [format thousands] (1997)
Setting up shop (1997)
redirect from the errorsMessages.db entry (1997)
virtual virtual hosted store.... (1998)
Single Link browsing (1997)
Timeout question .. (2003)
Show shoppingcart after remove last item (1997)
[WebDNA] talklist archives don't search/find recent posts? (2008)
WebCat2final1 crashes (1997)
Sendmail/Emailer Bug? (2001)
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)
FEA REQ: One .hdr, multiple .db's (2003)
add to cart within a page? (1997)