Search Sort Random
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 58005
interpreted = N
texte = Hi:This should be so easy. It is an example right out of the manual. (WebCat 4.5.1 -NT.)Just doing a simple search and want a random sort order for the founditems. No big deal.[search db=data/images.db&nePROPERTYRECORDdata=[blank]&RECORDsdir=ra&max=10][founditems] [record]-[propertyrecord]
[/founditems][/search]I always get the same 10 records in the exact same order. (PROPERTYRECORD is a text field)Am I using sdir=ra wrong?I really want to say max=1 and get a different record each time. I'd use [random] except I only have25 records, and don't see a way to limit the results to be other than the default 1-100.Any help?Thanks,Frank-------------------------------------------------------------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:
Hi:This should be so easy. It is an example right out of the manual. (WebCat 4.5.1 -NT.)Just doing a simple search and want a random sort order for the founditems. No big deal.[search db=data/images.db&nePROPERTYRECORDdata=[blank]&RECORDsdir=ra&max=10][founditems] [record]-[propertyrecord]
[/founditems][/search]I always get the same 10 records in the exact same order. (PROPERTYRECORD is a text field)Am I using sdir=ra wrong?I really want to say max=1 and get a different record each time. I'd use [random] except I only have25 records, and don't see a way to limit the results to be other than the default 1-100.Any help?Thanks,Frank-------------------------------------------------------------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/
frank@cwolfe.com
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:
creator code (1997)
Silly Question (2003)
Robots fill event log (1997)
New Plug-in and Type 11 errors (1997)
AutoCommit Preference? (1998)
Security hole in WebCat? (1999)
emailer (1997)
protect tag not working (1998)
expired beta (1997)
no global [username] or [password] displayed ... (1997)
Help with Repost Data msg from form (1997)
forms (2001)
Unexpected comparison behavior change in 4.5.1 (2003)
Loosing Quantity (2000)
Time Tracking (2003)
Range Comparisons (2000)
Draft Manual, Tutorial, and more (1997)
calculating ShipCost depending on weight (1997)
shipcost - cleaner with a table (1998)
Not really WebCat- (1997)