Re: FoundItems and punctuation

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 28944
interpreted = N
texte = Andy, Thanks for reply as fast as you did it, but I couldn't make it work, I have webcatalog 2.1 Do you know if this work in webcat 2.x or maybe I did it wrong ?Thanks again. -RodolfoEl 3/13/00 10:56 AM, Andy Willett andy@betau.com escribió:> I'd try it like this: Within the subcategory search, add a counter. When the > item number = NumFound, use a semicolon instead of the comma. > > [search number 1] > [founditems] > [math show=F]SubCatCounter=0[/math] > [search number 2] > [founditems] > [math show=F]SubCatCounter=[SubCatCounter]+1[/math] > [subcategory][showif [SubCatCounter]![numfound]],[/showif][hideif > [SubCatCounter]![numfound];[/hideif] > [/founditems] > [/search] > [/founditems] > [/search] > > --------------- > > Andy Willett, Senior Technician > > Beta Unlimited: Business Workgroup Solutions > andy@betau.com > 212-685-1886 > >> From: Rodolfo >> Reply-To: (WebCatalog Talk) >> Date: Mon, 13 Mar 2000 10:55:39 -0600 >> To: (WebCatalog Talk) >> Subject: FoundItems >> >> Hi there, >> I need to find categories an subcategories, but I need to be ordered like >> this: >> >> Category1 >> subcategory1, >> subcategory2, >> subcategory3; >> Category2 >> subcategory1, >> subcategory2, >> subcategory3; >> >> at the end of each set of subcategories I need to put a semicolon instead od >> a comma. >> Right now I have something lika this: >> >> [search >> db=database.db&grSKUdata=0&categorysumm=t&categorysort=1][founditems][catego >> ry] >> [search >> db=database.db&eqcategorydatarq=[category]&subcategorysumm=t&subcategorysort >> =1][founditems][subcategory], >> [/founditems];[/search] >> [/founditems] >> [/search] >> >> The result of this is: >> >> Category1 >> subcategory1, >> subcategory2, >> subcategory3,; >> Category2 >> subcategory1, >> subcategory2, >> subcategory3,; >> >> How can I take away the last comma and insert the semicolon instead? >> Any Idea? >> Thanks >> -Rodolfo de la Garza >> >> >> ------------------------------------------------------------- >> 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 >> > > > ------------------------------------------------------------- > 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 > ------------------------------------------------------------- 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:

    
  1. Re: FoundItems and punctuation (Rodolfo 2000)
  2. Re: FoundItems and punctuation (Andy Willett 2000)
Andy, Thanks for reply as fast as you did it, but I couldn't make it work, I have webcatalog 2.1 Do you know if this work in webcat 2.x or maybe I did it wrong ?Thanks again. -RodolfoEl 3/13/00 10:56 AM, Andy Willett andy@betau.com escribió:> I'd try it like this: Within the subcategory search, add a counter. When the > item number = NumFound, use a semicolon instead of the comma. > > [search number 1] > [founditems] > [math show=F]SubCatCounter=0[/math] > [search number 2] > [founditems] > [math show=F]SubCatCounter=[SubCatCounter]+1[/math] > [subcategory][showif [SubCatCounter]![numfound]],[/showif][hideif > [SubCatCounter]![numfound];[/hideif] > [/founditems] > [/search] > [/founditems] > [/search] > > --------------- > > Andy Willett, Senior Technician > > Beta Unlimited: Business Workgroup Solutions > andy@betau.com > 212-685-1886 > >> From: Rodolfo >> Reply-To: (WebCatalog Talk) >> Date: Mon, 13 Mar 2000 10:55:39 -0600 >> To: (WebCatalog Talk) >> Subject: FoundItems >> >> Hi there, >> I need to find categories an subcategories, but I need to be ordered like >> this: >> >> Category1 >> subcategory1, >> subcategory2, >> subcategory3; >> Category2 >> subcategory1, >> subcategory2, >> subcategory3; >> >> at the end of each set of subcategories I need to put a semicolon instead od >> a comma. >> Right now I have something lika this: >> >> [search >> db=database.db&grSKUdata=0&categorysumm=t&categorysort=1][founditems][catego >> ry] >> [search >> db=database.db&eqcategorydatarq=[category]&subcategorysumm=t&subcategorysort >> =1][founditems][subcategory], >> [/founditems];[/search] >> [/founditems] >> [/search] >> >> The result of this is: >> >> Category1 >> subcategory1, >> subcategory2, >> subcategory3,; >> Category2 >> subcategory1, >> subcategory2, >> subcategory3,; >> >> How can I take away the last comma and insert the semicolon instead? >> Any Idea? >> Thanks >> -Rodolfo de la Garza >> >> >> ------------------------------------------------------------- >> 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 >> > > > ------------------------------------------------------------- > 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 > ------------------------------------------------------------- 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 Rodolfo

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:

Weird problems with [SHOWIF]s (1997) protect tag on NT IIS (1997) WebCatalog can't find database (1997) Setting up shop (1997) Country & Ship-to address & other fields ? (1997) Comments in db? (1997) Request for help on a new *automated* WebCatalog function ... (1998) Bug? (1997) Using Cookie for client specific info? (1997) Fuzzy on [url] context (1998) Subject: Any Newsletters out there (1998) webten vs. webstar (1998) Massaging SubTotals (1999) filtering [founditems] (2004) [AppendFile] problem (WebCat2b13 Mac .acgi) (1997) Associative lookup style? (1997) WCS Newbie question (1997) WebCommerce: Folder organization ? (1997) OT: Poll Please (2002) Comments in db? (1997)