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:

[Sum] function? (1997) Search/sort in URL Was: GuestBook example (1997) listfiles-looking for slick solution (1997) [SearchString] problem with [search] context (1997) WC3 and SSL on NT (1998) WebCat2b12--[searchstring] bug (1997) affiliate marketing program (1998) Banners and sort of random display (1997) OK, here's a new one (2002) security (1997) Separate SSL Server (1997) 'page impression' techniques for banner ads (1999) WebCat2: Items xx to xx shown, etc. (1997) [SMSI] WebDNA is too good to go away! (2006) 2.01 upgrade problems (1997) WebDNA Grep help wanted (2004) More on the email templates (1997) Writefile (2000) Limit on nested [ShowIf]'s? (1997) PIXO (1997)