Grouping Fields in Context
This WebDNA talk-list message is from 1999
It keeps the original formatting.
numero = 24636
interpreted = N
texte = Hi Webcats:Well, after having struggled with this one for several hours, it's time togive the list a shot :-)Here's the challenge. I have a database that contains music reviews. Eachrecord contains a single review, plus 4 fields for quotes from that review(quote1, quote2, quote3, quote4). I want to be able to randomly display asingle quote from any of the quotes found within the database. I want thisto display on the first page of the website. (see the site athttp://www.marylydiaryan.com)Here is the code that I have tried, but which is not working.[search db=newsite/mlrreviews.txt&group1field=quote1+quote2+quote3+quote4&negroup1data=0&group1sort=1&group1sdir=ra&max=1][foundItems][group1][/founditems][/search]I have been guessing as to what I should place within [founditems] as thisinformation is not listed in any of the documentation nor mentioned in anyof the searchable archives. I have tried both [group1] and [group1field].I am successfully accomplishing a similar search to pull in a random quotebased on a single quote field:[search db=newsite/mlrreviews.txt&nequote1data=0"e1sort=1"e1sdir=ra&max=1][foundItems][quote1][/foundItems][/search]Any help will be greatly appreciated.Timothy W. Killian---------------------------wb: http://www.eventure.comph: 206.559.2200----------------------------------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to
.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
Associated Messages, from the most recent to the oldest:
Hi Webcats:Well, after having struggled with this one for several hours, it's time togive the list a shot :-)Here's the challenge. I have a database that contains music reviews. Eachrecord contains a single review, plus 4 fields for quotes from that review(quote1, quote2, quote3, quote4). I want to be able to randomly display asingle quote from any of the quotes found within the database. I want thisto display on the first page of the website. (see the site athttp://www.marylydiaryan.com)Here is the code that I have tried, but which is not working.[search db=newsite/mlrreviews.txt&group1field=quote1+quote2+quote3+quote4&negroup1data=0&group1sort=1&group1sdir=ra&max=1][founditems][group1][/founditems][/search]I have been guessing as to what I should place within [founditems] as thisinformation is not listed in any of the documentation nor mentioned in anyof the searchable archives. I have tried both [group1] and [group1field].I am successfully accomplishing a similar search to pull in a random quotebased on a single quote field:[search db=newsite/mlrreviews.txt&nequote1data=0"e1sort=1"e1sdir=ra&max=1][founditems][quote1][/foundItems][/search]Any help will be greatly appreciated.Timothy W. Killian---------------------------wb: http://www.eventure.comph: 206.559.2200----------------------------------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to .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
Timothy W. Killian
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:
I have troubles to send message out (1998)
PIXO (1997)
WebCat2b13MacPlugin - nested [xxx] contexts (1997)
[WebDNA] Syntax Error? (2009)
Instructions for Digest (1997)
WebCat2b12 CGI Mac - [shownext] problem (1997)
[WebDNA] Mac Question (2018)
too many files! (2006)
WC2b15 File Corruption (1997)
Robots fill event log (1997)
Nested Loops and SHOWIFs (1997)
[WebDNA] Gratz with 6.1b1 (2008)
Mass Mail (2000)
Help! I've fallen in Structured Query Language and can't getup. (2002)
WebCat editing, SiteGuard & SiteEdit (1997)
[WriteFile] problems (1997)
Extended [ConvertChars] (1997)
syntax question, not in online refernce (1997)
Sorting Numbers (1997)
Very serious bug with the [protect] tag (2003)