Re: Showing Results Alphabetically in Columns (top to bottom)
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 46220
interpreted = N
texte = This helps tremendously!! Thanks so much.The only problem I am having now is in the last row.If there are three columns worth of results, the last row shows up justfine, HOWEVER if there are only 1 or 2 items to display in the last row...the table breaks.I'm still working on this, but you can see the issue here:http://www.netsourcery.com/westerncotton/committees/members.html?committeesku=3008&committeename=Rules%20%26%20By-LawsAny insight would be great!The code: (Thanks to Ron at Inkblot Media)[math show=f]on=0[/math][math show=f]stop=3[/math]
[searchdb=/dbases/westerncotton/contacts.txt&wscommitteedatarq=[committeesku]&lnamesort=1&lnamesdir=as] [text]break=[math][numfound]/3[/math][/text] [founditems] [fname] [lname] [showif [index]\[break]] [math]on=[on]+1[/math] | [hideif [stop]=[on]] [/hideif] [/showif] [/founditems] [hideif [stop]=[on]] | [/hideif]
[/search]
-----Original Message-----From: WebCatalog Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On BehalfOf Inkblot MediaSent: Tuesday, December 10, 2002 9:37 PMTo: WebCatalog TalkSubject: Re: Showing Results Alphabetically in Columns (top to bottom)The code I sent earlier will work, but it adds a blank cell to the end ofthe table. The following code removes that and I aded some comments to helpexplain what I am doing. In case you want to edit the code.Hope this helps.[!] ------------------------------------------- [/!][!] On = the table cell we are working on. Stop = the number of cells you want We will use these to ensure that we do not have any trailing cells [/!][!] ------------------------------------------- [/!][math show=f]on=0[/math][math show=f]stop=3[/math]
[!] ------------------------------------------- [/!][!] Do search as normal as set the SORT to as [/!][!] ------------------------------------------- [/!][search db=my.db&neIDdatarq=ALL&asIDsort=1][!] ------------------------------------------- [/!][!] Break = where to end a cell and start a new one. It is the number of found items divided by the number of cells you want. [/!][!] ------------------------------------------- [/!][text]break=[math][numfound]/3[/math][/text] [founditems] [id] [!] ------------------------------------------- [/!][!] The showif takes the index # of the founditem and checks to see if it is divisable by the # of cells you want. If it is then it closes the cell and starts a new cell. [/!][!] ------------------------------------------- [/!] [showif [index]\[break]][!] ------------------------------------------- [/!][!] The math adds one to the on variable [/!][!] ------------------------------------------- [/!] [math]on=[on]+1[/math] | [!] ------------------------------------------- [/!][!] The hideif checks to see if on = stop. If it does then it hides the cell opening. [/!][!] ------------------------------------------- [/!] [hideif [stop]=[on]] [/hideif] [/showif][/founditems][!] ------------------------------------------- [/!][!] The hideif checks to see if on = stop. If it does then it hides the cell opening. [/!][!] ------------------------------------------- [/!][hideif [stop]=[on]] | [/hideif]
[/search]
----- Original Message -----From: Kimberly D. Walls (Ingram)
To: WebCatalog Talk Sent: Tuesday, December 10, 2002 5:21 PMSubject: Showing Results Alphabetically in Columns (top to bottom)> Surely, someone has found a way to make this happen... but I can't seem to> find anything in the archives. Probably because I don't know what to look> for.>> >> [search> db=database.txt&wscommitteedatarq=[committeesku]&lnamesort=1&lnamesdir=as]>> [founditems]>> >> [fname] [lname]>> | >> [showif [index]\3]
[/showif]>> [/founditems]>> [/search]>>>> This particular line: [showif [index]\3]
[/showif]>> brings back results in three columns... but alphabetically from left to> right across the columns. How would I go about showing results in> alphabetical order from top to bottom?>> So instead of:>> A B C>> D E F>> I would like to have:>> A C E>> B D F>>>> I'm stuck.>> Kim>>>>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to> Web Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail toWeb Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
This helps tremendously!! Thanks so much.The only problem I am having now is in the last row.If there are three columns worth of results, the last row shows up justfine, HOWEVER if there are only 1 or 2 items to display in the last row...the table breaks.I'm still working on this, but you can see the issue here:http://www.netsourcery.com/westerncotton/committees/members.html?committeesku=3008&committeename=Rules%20%26%20By-LawsAny insight would be great!The code: (Thanks to Ron at Inkblot Media)[math show=f]on=0[/math][math show=f]stop=3[/math] [searchdb=/dbases/westerncotton/contacts.txt&wscommitteedatarq=[committeesku]&lnamesort=1&lnamesdir=as] [text]break=[math][numfound]/3[/math][/text] [founditems] [fname] [lname] [showif [index]\[break]] [math]on=[on]+1[/math] | [hideif [stop]=[on]] [/hideif] [/showif] [/founditems] [hideif [stop]=[on]] | [/hideif]
[/search]
-----Original Message-----From: WebCatalog Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On BehalfOf Inkblot MediaSent: Tuesday, December 10, 2002 9:37 PMTo: WebCatalog TalkSubject: Re: Showing Results Alphabetically in Columns (top to bottom)The code I sent earlier will work, but it adds a blank cell to the end ofthe table. The following code removes that and I aded some comments to helpexplain what I am doing. In case you want to edit the code.Hope this helps.[!] ------------------------------------------- [/!][!] On = the table cell we are working on. Stop = the number of cells you want We will use these to ensure that we do not have any trailing cells [/!][!] ------------------------------------------- [/!][math show=f]on=0[/math][math show=f]stop=3[/math][!] ------------------------------------------- [/!][!] Do search as normal as set the SORT to as [/!][!] ------------------------------------------- [/!][search db=my.db&neIDdatarq=ALL&asIDsort=1][!] ------------------------------------------- [/!][!] Break = where to end a cell and start a new one. It is the number of found items divided by the number of cells you want. [/!][!] ------------------------------------------- [/!][text]break=[math][numfound]/3[/math][/text] [founditems] [id] [!] ------------------------------------------- [/!][!] The showif takes the index # of the founditem and checks to see if it is divisable by the # of cells you want. If it is then it closes the cell and starts a new cell. [/!][!] ------------------------------------------- [/!] [showif [index]\[break]][!] ------------------------------------------- [/!][!] The math adds one to the on variable [/!][!] ------------------------------------------- [/!] [math]on=[on]+1[/math] | [!] ------------------------------------------- [/!][!] The hideif checks to see if on = stop. If it does then it hides the cell opening. [/!][!] ------------------------------------------- [/!] [hideif [stop]=[on]] [/hideif] [/showif][/founditems][!] ------------------------------------------- [/!][!] The hideif checks to see if on = stop. If it does then it hides the cell opening. [/!][!] ------------------------------------------- [/!][hideif [stop]=[on]] | [/hideif]
[/search]
----- Original Message -----From: Kimberly D. Walls (Ingram) To: WebCatalog Talk Sent: Tuesday, December 10, 2002 5:21 PMSubject: Showing Results Alphabetically in Columns (top to bottom)> Surely, someone has found a way to make this happen... but I can't seem to> find anything in the archives. Probably because I don't know what to look> for.>> >> [search> db=database.txt&wscommitteedatarq=[committeesku]&lnamesort=1&lnamesdir=as]>> [founditems]>> >> [fname] [lname]>> | >> [showif [index]\3]
[/showif]>> [/founditems]>> [/search]>>>> This particular line: [showif [index]\3]
[/showif]>> brings back results in three columns... but alphabetically from left to> right across the columns. How would I go about showing results in> alphabetical order from top to bottom?>> So instead of:>> A B C>> D E F>> I would like to have:>> A C E>> B D F>>>> I'm stuck.>> Kim>>>>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to> Web Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail toWeb Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Kimberly D. Walls \(Ingram\)
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:
webcat NT with [dos] command (1997)
RE: Signal Raised (1997)
how do ye do this?????? (2001)
WCS Newbie question (1997)
[WebDNA] Email time bug? (2011)
[OT] sbox error (2003)
AJAX with WebDNA (2006)
Applescript, WebDNA, and PDF (1997)
2nd try:Webcat interfering with Webstar? (1998)
Graphing Modules (2004)
[WebDNA] TLS 1.2 and [tcpconnect] (2018)
SMTP Mail Server (2003)
default value from Lookup (was Grant, please help me) (1997)
[OT] 'Email this story to a friend' (2003)
[WriteFile] problems (1997)
docs for WebCatalog2 (1997)
Unexpected error (1997)
WebCat Mac OS X and Encrypt Help Need (2000)
[ot] Any One Want A WebDNA Billing Program? (2003)
WebCat2: Items xx to xx shown, etc. (1997)