Re: sorting...

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 52822
interpreted = N
texte = If you are using WebDNA 5, you can append the found brand names into a [table], then search the table with alphabetical sorting to build your menu. Under WebDNA 4, you can do the same by writing to a temporary db and then searching and sorting that. But my preferred way, which would work in both environments and doesn't require the table or temp db overhead is this: [text]tBrandList=[/text] [search db=admin/products.db...BRANDsumm=T&rank=off][founditems] [text]tBrandList=[tBrandList] [BRAND][/text] [/founditems][/search] .... you now have a list of all the BRAND IDvalues in the text variable [tBrandList]. Search the brand.db for all these IDs with alpha sorting... - brian On Friday, September 12, 2003, at 04:32 AM, Alan White wrote: > Hi > > I have a menu that I need to sort alphabetically. The search is for a > list > of brands available on our site but the brand is stored in the > products.db > as a number in a field called THE_BRAND and a lookup is done on the > brand.db > to find the name. > > The brands are coming out ok but I am having difficulty trying to sort > them, > here is the code:- > > [search > db=admin/ > products.db&neBRANDdatarq=find_all&grNO_INVENTORYdatarq=0&BRANDsumm > =T&asBRANDsort=1] > > [/search] > > Any help appreciated... > > Thanks > Alan > -- Brian Fries, BrainScan Software -- http://www.brainscansoftware.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:

    
  1. Re: Sorting... stumped. ( "Dan Strong" 2006)
  2. Re: Sorting... stumped. ( Frank Nordberg 2006)
  3. Re: Sorting... stumped. ( "Dan Strong" 2006)
  4. Re: Sorting... stumped. ( Alex McCombie 2006)
  5. Re: Sorting... stumped. ( "Dan Strong" 2006)
  6. Re: Sorting... stumped. ( Alex McCombie 2006)
  7. Re: Sorting... stumped. ( "Dan Strong" 2006)
  8. Re: Sorting... stumped. ( "Dan Strong" 2006)
  9. Re: Sorting... stumped. ( "Dan Strong" 2006)
  10. Sorting... stumped. ( "Dan Strong" 2006)
  11. Re: sorting... ( Tim Robinson 2003)
  12. Re: sorting... ( Brian Fries 2003)
  13. Re: sorting... ( "Andrew Simpson" 2003)
  14. sorting... ( Alan White 2003)
  15. Re: sorting... (Kalin Mintchev 2003)
  16. Re: sorting... (Brian Fries 2003)
  17. sorting... (Kalin Mintchev 2003)
If you are using WebDNA 5, you can append the found brand names into a [table], then search the table with alphabetical sorting to build your menu. Under WebDNA 4, you can do the same by writing to a temporary db and then searching and sorting that. But my preferred way, which would work in both environments and doesn't require the table or temp db overhead is this: [text]tBrandList=[/text] [search db=admin/products.db...BRANDsumm=T&rank=off][founditems] [text]tBrandList=[tBrandList] [BRAND][/text] [/founditems][/search] .... you now have a list of all the BRAND IDvalues in the text variable [tBrandList]. Search the brand.db for all these IDs with alpha sorting... - brian On Friday, September 12, 2003, at 04:32 AM, Alan White wrote: > Hi > > I have a menu that I need to sort alphabetically. The search is for a > list > of brands available on our site but the brand is stored in the > products.db > as a number in a field called THE_BRAND and a lookup is done on the > brand.db > to find the name. > > The brands are coming out ok but I am having difficulty trying to sort > them, > here is the code:- > > [search > db=admin/ > products.db&neBRANDdatarq=find_all&grNO_INVENTORYdatarq=0&BRANDsumm > =T&asBRANDsort=1] > > [/search] > > Any help appreciated... > > Thanks > Alan > -- Brian Fries, BrainScan Software -- http://www.brainscansoftware.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/ Brian Fries

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:

webcat 2.1 new cart fields - please explain more (1998) WCS Newbie question (1997) WebCat2b12 Mac.acgi--[searchstring] bug (1997) Whats going on with my SERIAL NUMBER??? (1998) [isfile] ? (1997) Hyperboard users wanting a quoted message (1998) Re[3]: 2nd WebCatalog2 Feature Request (1996) Re:no template caching (1997) Price recalc based on quantity (1997) forms and variables (1998) Using Checkbox (2000) searchable list archive (1997) Ok here is a question? (1997) RE: Include (1998) XML Parse with XML WebDNA Syntax... (2004) Questions To Answer (1997) Re2: AAgghh!! Help, please. SSL strikes again. (1997) Banners and sort of random display (1997) &fieldsdir=ra truely random?? (2000) select multiple (1997)