Re: setting line item numbers

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 16018
interpreted = N
texte = >Hi all! > >I have a database that I need to add a unique identifier to each line >(sometime after the database is created.) This is as close as I can get, and >it doesn't work. Any ideas? > >[search db=../myuser.db&geZIPdatarq=0] > [founditems] > [replace >db=../myuser.db&eqDATEdatarq=[date]&eqZIPdatarq=[zip]]sku=[index][random][/r >eplace] > [/founditems] >[/search]Use the [cart] tag, it always creates a unique number the first time it's used on a page -- provided you haven't passed a [cart] value from the preceeding page ...[search db=../myuser.db&geZIPdatarq=0] [founditems] [replace db=../myuser.db&eqDATEdatarq=[date]&eqZIPdatarq=[zip]]sku=[cart][/replace] [/founditems] [/search]Sincerely, Ken Grome ken@iav.com 808-737-6499 WebDNA Solutions http://webdna.net/ Associated Messages, from the most recent to the oldest:

    
  1. Re: setting line item numbers (Kenneth Grome 1998)
  2. Re: setting line item numbers (Brian B. Burton 1998)
  3. Re: setting line item numbers (Kenneth Grome 1998)
  4. setting line item numbers (Brian B. Burton 1998)
>Hi all! > >I have a database that I need to add a unique identifier to each line >(sometime after the database is created.) This is as close as I can get, and >it doesn't work. Any ideas? > >[search db=../myuser.db&geZIPdatarq=0] > [founditems] > [replace >db=../myuser.db&eqDATEdatarq=[date]&eqZIPdatarq=[zip]]sku=[index][random][/r >eplace] > [/founditems] >[/search]Use the [cart] tag, it always creates a unique number the first time it's used on a page -- provided you haven't passed a [cart] value from the preceeding page ...[search db=../myuser.db&geZIPdatarq=0] [founditems] [replace db=../myuser.db&eqDATEdatarq=[date]&eqZIPdatarq=[zip]]sku=[cart][/replace] [/founditems] [/search]Sincerely, Ken Grome ken@iav.com 808-737-6499 WebDNA Solutions http://webdna.net/ 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:

RE: OK, here goes... (1997) WebSTAR 2.1 freezes my Mac (1997) Support ?? (1997) WebCatalog for Linux users!! (2000) auto-stripping of spaces (1997) WebCat2: multiple currency support (1997) [WebDNA] Triggers not working (2014) case number with spaces. (2000) nested context (1998) Problems passing [SKU] with $Replace in 2.0 (1997) New Command prefs ... (1997) can WC render sites out? (1997) How To question on setting up downloads (1997) Showing unopened cart (1997) Major bug report on rootbeer (1997) Conditional searching & displaying (1997) Quickie question on the email templates (1997) Subtotal Not Calculated on Invoice.html (1998) Summarising on two fields (1998) TCP Connect/send and CGI (2003)