Re: Grouping Fields
This WebDNA talk-list message is from 2006
It keeps the original formatting.
numero = 67133
interpreted = N
texte = I'd be either having a New field in the main db with a FINALPRICE, (that way you can do Was $$$ Now $$$ etc)ORI'd be doing it with a temp db like this:[search db=database.db&gePRICEdata=0][writefile temp.db]SHOWPRICE[/writefile][founditems][appendfile db=temp.db][showif [SALEPRICE]=0][PRICE][/showif][showif [SALEPRICE]>0][SALEPRICE][/showif][/append][/founditems][/search][search db=temp.db&geSHOWPRICEdata=0&SHOWPRICEsort=1&SHOWPRICEsdir=de&SHOWPRICEtype=num][founditems][SHOWPRICE][/founditems][/search][closedatabase temp.db][deletefile file=temp.db]-- Regards,MarkoOn Tuesday, 9 May 2006 7:31 AM, Clint Davis
wrote:I have PRICE and SALEPRICE fields in my product database. I want to findevery product in the database and sort based on those fields. If an item ison sale, the SALEPRICE field is populated with a real number, otherwise it'spopulated with zero.Group1Field=SALEPRICE+PRICE&neGroup1datarq=find_all&deGroup1sort=1&Group1type=numMy DB looks like this:PRICESALEPRICE13.99014.9912.4910.990This should display as:13.9912.4910.99Can this be done with Grouping, or do I have to create a table to re-searchand sort?-------------------------------------------------------------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 to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
I'd be either having a New field in the main db with a FINALPRICE, (that way you can do Was $$$ Now $$$ etc)ORI'd be doing it with a temp db like this:[search db=database.db&gePRICEdata=0][writefile temp.db]SHOWPRICE[/writefile][founditems][appendfile db=temp.db][showif [SALEPRICE]=0][PRICE][/showif][showif [SALEPRICE]>0][SALEPRICE][/showif][/append][/founditems][/search][search db=temp.db&geSHOWPRICEdata=0&SHOWPRICEsort=1&SHOWPRICEsdir=de&SHOWPRICEtype=num][founditems][SHOWPRICE][/founditems][/search][closedatabase temp.db][deletefile file=temp.db]-- Regards,MarkoOn Tuesday, 9 May 2006 7:31 AM, Clint Davis wrote:I have PRICE and SALEPRICE fields in my product database. I want to findevery product in the database and sort based on those fields. If an item ison sale, the SALEPRICE field is populated with a real number, otherwise it'spopulated with zero.Group1Field=SALEPRICE+PRICE&neGroup1datarq=find_all&deGroup1sort=1&Group1type=numMy DB looks like this:PRICESALEPRICE13.99014.9912.4910.990This should display as:13.9912.4910.99Can this be done with Grouping, or do I have to create a table to re-searchand sort?-------------------------------------------------------------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 to Web Archive of this list is at: http://webdna.smithmicro.com/
Marko Bernyk
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:
Another question about credit cards (1997)
template cache problem (1998)
WCS Newbie question (1997)
RAM variables (1997)
carriage returns in data (1997)
RE: Unexceling (was I need a smart quote...) (1999)
Pref settings? (1998)
Under Score (1999)
Replace command help (1998)
Re[3]: Problem with new formvariables (2000)
Email encryption (1998)
AND/OR searches in WebCat 3.07 (2003)
Include Files (1998)
Multiple prices (1997)
Emailer (1997)
Multiple prices (1997)
Proper file locations (1997)
Emailer setup (1997)
WebCat2b13MacPlugIn - syntax to convert date (1997)
problems with 2 tags (1997)