RE: [WebDNA] Sorting -- Dealing with Blanks
This WebDNA talk-list message is from 2008
It keeps the original formatting.
numero = 100323
interpreted = N
texte = Perfect. I=92m already writing to a table so I'll try adding a "rank" =field.Thanks, Donovan. And thanks to all who responded to my question - it's =mostappreciated. :)Tana-----Original Message-----From: Donovan Brooke [mailto:dbrooke@webdna.us]=20Sent: Wednesday, July 16, 2008 11:56 AMTo: talk@webdna.usSubject: Re: [WebDNA] Sorting -- Dealing with BlanksTana Adams wrote:> Hi,> Does anyone know of a way to show all blank records for a particular=20> field at the bottom when using the sort feature? For example, I want =to=20> be able to sort a field, in either ascending or descending order, and=20> always show any blank records for that particular field at the bottom. ==20> I know I can use a showif/hideif but I was wondering if there was=20> actually a command for that that I=92m missing within the sort featureitself.>=20> Thanks,> TanaTo always show blank records at the bottom when sorting via both =ascendingand descending on text,num, or date formats is not really built in as =far asI know. You would have to first write your founditems to a table and adda simple sorting field to that table based off of simple criteria...The sort field ("RANK" perhaps) could have a value of 0 if thefield is not blank, and a 1 if it is.Then search that table and do a 2 part sort.First sort would be a type=3Dnum sort on the RANK field thatis always descending. The second sort would be your ascend or descendsorts.yup, that should do it. :-)Donovan--=20Donovan D. Brooke PH/FAX: 1 (608) 291-2024------------------------------------------------VPWebDNA Software Corporation16192 Coastal HighwayLewes, DE 19958No virus found in this incoming message.Checked by AVG.=20Version: 7.5.524 / Virus Database: 270.5.0/1555 - Release Date: =7/16/20086:43 AM=20No virus found in this outgoing message.Checked by AVG.=20Version: 7.5.524 / Virus Database: 270.5.0/1555 - Release Date: =7/16/20086:43 AM=20
Associated Messages, from the most recent to the oldest:
Perfect. I=92m already writing to a table so I'll try adding a "rank" =field.Thanks, Donovan. And thanks to all who responded to my question - it's =mostappreciated. :)Tana-----Original Message-----From: Donovan Brooke [mailto:dbrooke@webdna.us]=20Sent: Wednesday, July 16, 2008 11:56 AMTo: talk@webdna.usSubject: Re: [WebDNA] Sorting -- Dealing with BlanksTana Adams wrote:> Hi,> Does anyone know of a way to show all blank records for a particular=20> field at the bottom when using the sort feature? For example, I want =to=20> be able to sort a field, in either ascending or descending order, and=20> always show any blank records for that particular field at the bottom. ==20> I know I can use a showif/hideif but I was wondering if there was=20> actually a command for that that I=92m missing within the sort featureitself.>=20> Thanks,> TanaTo always show blank records at the bottom when sorting via both =ascendingand descending on text,num, or date formats is not really built in as =far asI know. You would have to first write your founditems to a table and adda simple sorting field to that table based off of simple criteria...The sort field ("RANK" perhaps) could have a value of 0 if thefield is not blank, and a 1 if it is.Then search that table and do a 2 part sort.First sort would be a type=3Dnum sort on the RANK field thatis always descending. The second sort would be your ascend or descendsorts.yup, that should do it. :-)Donovan--=20Donovan D. Brooke PH/FAX: 1 (608) 291-2024------------------------------------------------VPWebDNA Software Corporation16192 Coastal HighwayLewes, DE 19958No virus found in this incoming message.Checked by AVG.=20Version: 7.5.524 / Virus Database: 270.5.0/1555 - Release Date: =7/16/20086:43 AM=20No virus found in this outgoing message.Checked by AVG.=20Version: 7.5.524 / Virus Database: 270.5.0/1555 - Release Date: =7/16/20086:43 AM=20
"Tana Adams"
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:
WCS Newbie question (1997)
[WebDNA] WebDNA programmers for hire? (2010)
Just Testing (1997)
WebCatalog for guestbook ? (1997)
Claris HomePage messes up the code (1997)
USPS change to SSL tcpconnect (2007)
[WebDNA] Dynamic vertical columns (2008)
Use of Back and Reload Buttons on ShoppingCart page? (1997)
Not really WebCat - need HTML Grider (1997)
input and accents (2000)
RE: groups and [ShowNext] (1997)
A workaround for handling date range search in yyyy/mm/dd form (1997)
possible, WebCat2.0 and checkboxes-restated (1997)
WebCat 3? (2000)
MacActivity and PCS (1997)
This is probably a stupid question... (2004)
UPPERCASE (1997)
Updating checkboxes made easy !!! (1998)
Using Plug-In while running 1.6.1 (1997)
[WebDNA] Old Problem, the exclamation point (2014)