Re: sorting in found set.

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 39561
interpreted = N
texte = Am I oversimplifying, or are you looking for the shownext context? It allows specification of a start and end parameter, which should allow what you're attempting to do.See docs. [shownext] ----- Original Message ----- From: Marc M. To: WebCatalog Talk Sent: Tuesday, October 23, 2001 6:05 PM Subject: Help: sorting in found set. > Mac os9,webstar,webcat 4.01 > > I am looking for a way to sort found items. I have a search result page that > uses an imbedded search: > > [search db=serials.db&[formvariables name=_&exact=F][getchars > start=2][name][/getchars]=[url][value][/url]&[/formvariables]startat=[starta > t]&[sortfield]sort=1&[sortfield]sdir=[sortdirection]&max=[show]] > > which is fairly simple. The only deviation is that the sort field and > sdir=as can be changed. > > my problem comes when I have 6 found items and I used max=5. my first page > shows 5 items 1,2,3,4,5 and I get a hyperlink to 6. > > above the column of results I have 2 hyperlinks > > name=_&exact=F][name]=[url][value][/url]&[/formvariables]startat=[startat]&s > ortfield=serial_number&sortdirection=de&max=[show]> > > which searches sorts decending. Shows 1,2,3,4,5 > > name=_&exact=F][name]=[url][value][/url]&[/formvariables]startat=[startat]&s > ortfield=serial_number&sortdirection=as&max=[show]> > > which searches sorts ascending. Shows 6,5,4,3,2 not exactly what i wanted. > > I would like to sdir into the result of the original found items which would > give me 5,4,3,2,1. > > Is there a way to position=start, position=end in this type of search so i > can re-sort the first 5 found. > > > Any help would be appreciated. > > > > ------------------------------------------------------------- > 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://search.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://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Help: sorting in found set. (Marc M. 2001)
  2. Re: sorting in found set. (Marc M. 2001)
  3. Re: Help: sorting in found set. (Brian Fries 2001)
  4. Re: Help: sorting in found set. (Brian Fries 2001)
  5. Help: sorting in found set. (Marc M. 2001)
  6. Re: sorting in found set. (Bob McPeak 2001)
Am I oversimplifying, or are you looking for the shownext context? It allows specification of a start and end parameter, which should allow what you're attempting to do.See docs.
[shownext] ----- Original Message ----- From: Marc M. To: WebCatalog Talk Sent: Tuesday, October 23, 2001 6:05 PM Subject: Help: sorting in found set. > Mac os9,webstar,webcat 4.01 > > I am looking for a way to sort found items. I have a search result page that > uses an imbedded search: > > [search db=serials.db&[formvariables name=_&exact=F][getchars > start=2][name][/getchars]=[url][value][/url]&[/formvariables]startat=[starta > t]&[sortfield]sort=1&[sortfield]sdir=[sortdirection]&max=[show]] > > which is fairly simple. The only deviation is that the sort field and > sdir=as can be changed. > > my problem comes when I have 6 found items and I used max=5. my first page > shows 5 items 1,2,3,4,5 and I get a hyperlink to 6. > > above the column of results I have 2 hyperlinks > > name=_&exact=F][name]=[url][value][/url]&[/formvariables]startat=[startat]&s > ortfield=serial_number&sortdirection=de&max=[show]> > > which searches sorts decending. Shows 1,2,3,4,5 > > name=_&exact=F][name]=[url][value][/url]&[/formvariables]startat=[startat]&s > ortfield=serial_number&sortdirection=as&max=[show]> > > which searches sorts ascending. Shows 6,5,4,3,2 not exactly what i wanted. > > I would like to sdir into the result of the original found items which would > give me 5,4,3,2,1. > > Is there a way to position=start, position=end in this type of search so i > can re-sort the first 5 found. > > > Any help would be appreciated. > > > > ------------------------------------------------------------- > 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://search.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://search.smithmicro.com/ Bob McPeak

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:

Emailer & IMail List Server (1998) Windows nt service pack 3 upgrade (1997) pc (1997) international time (1997) Username for Admin Group (1997) Format question WC Mac f3 (1997) Emailer setup (1997) adding time (2003) Re[2]: 2nd WebCatalog2 Feature Request (1996) WebCat2 - storing unformatted date data? (1997) [WebDNA] Windows WebDNA Editor (2009) [WebDNA] calling a webDNA tmpl from PHP? (2008) problems with 2 tags (1997) Search Question (2003) Calculating multiple shipping... (1997) Looking for a Manual (1997) [WebDNA] Generating Excel File Via WebDNA (2010) Blowback and budgets. (2000) WebCat editing, SiteGuard & SiteEdit (1997) test - ignore please (2003)