Re: Search Sort Random

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 58006
interpreted = N
texte = You're not telling webdna to sort aything. Try adding the parameter that actually tells webdna to sort: recordsort=1 .... or just change "&RECORDsdir=ra" to "&rarecordsort=1" Either solution will fix your problem. >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 have >25 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/ -- Kenneth Grome WebDNA Programmer Outsource Service Provider Phone: +6332 255-6591 ------------------------------------------------------------- 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:

    
  1. Re: Search Sort Random ( Kenneth Grome 2004)
  2. Search Sort Random ( frank@cwolfe.com 2004)
You're not telling webdna to sort aything. Try adding the parameter that actually tells webdna to sort: recordsort=1 .... or just change "&RECORDsdir=ra" to "&rarecordsort=1" Either solution will fix your problem. >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 have >25 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/ -- Kenneth Grome WebDNA Programmer Outsource Service Provider Phone: +6332 255-6591 ------------------------------------------------------------- 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/ Kenneth Grome

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:

New Guestbook Source (1997) File upload to database ? (2001) problems with WebCat-Plugin () problems with 2 tags (1997) [WebDNA] [announce] Marketing new hire (2009) More on the email templates (1997) Showif date range comparison (1999) Layers,Dreamweaver and WebCat Code (2000) Running 2 two WebCatalog.acgi's (1996) Erotic Sites (1997) MacWEEK article help needed (1996) Unique Sort (2003) my price won't move (1997) More Hide IFs (2000) Listfiles not listing mounted volume (2002) Install Webcatalog under NT4.0 and Microsoft IIS 2.0 (1997) Caching problem... (2000) log files (1998) Sku numbers (1997) WebCat Error Log problem (2.0.1, acgi, Mac) (1997)