Reindexing a db with duplicate numbers...

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 25505
interpreted = N
texte = Here's the situation:I [append] all my orders to an orders.db. Each order is supposed to have a unique ordernumber, which is appended to orders.db as field ordernum.Due to a bug in one of my templates, some of these orders now have duplicate ordernumbers. I thought I'd correct this with something like the following code in a template: [search db=orders.db&neordernumdata=[blank]&asmoddatesort=1&asmodtimesort=2] [founditems] [replace db=orders.db&eqordernumdata=[ordernum]]ordernum=[index][/replace] [/founditems] [/search] Of course, that doesn't work. Anyone have a suggestion as to what search criteria I can put in the [replace] to make this work? All I want to do is sequentially renumber all the records in this db... Thanks,Will Starck TigerNet Technologies, Inc.------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go 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: Reindexing a db with duplicate numbers... (Will Starck 1999)
  2. Re: Reindexing a db with duplicate numbers... (Will Starck 1999)
  3. Re: Reindexing a db with duplicate numbers... (Aaron Lynch 1999)
  4. Re: Reindexing a db with duplicate numbers... (Kenneth Grome 1999)
  5. Reindexing a db with duplicate numbers... (Will Starck 1999)
Here's the situation:I [append] all my orders to an orders.db. Each order is supposed to have a unique ordernumber, which is appended to orders.db as field ordernum.Due to a bug in one of my templates, some of these orders now have duplicate ordernumbers. I thought I'd correct this with something like the following code in a template: [search db=orders.db&neordernumdata=[blank]&asmoddatesort=1&asmodtimesort=2] [founditems] [replace db=orders.db&eqordernumdata=[ordernum]]ordernum=[index][/replace] [/founditems] [/search] Of course, that doesn't work. Anyone have a suggestion as to what search criteria I can put in the [replace] to make this work? All I want to do is sequentially renumber all the records in this db... Thanks,Will Starck TigerNet Technologies, Inc.------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go 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 Will Starck

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:

WebCatalog can't find database (1997) MacActivity and PCS (1997) A multi-processor savvy WebCatalog? (1997) [WebDNA] crashes are back (2008) Configuring E-mail (1997) Email (2000) Make sure I understand this??? (1997) Help (1999) WCS Newbie question (1997) [WebDNA] How do I run a shell command as root? (2015) form data submission gets truncated (1997) WC2.0 Memory Requirements (1997) Hard Questions ? (1997) Buying sans cart (1997) FORMS: Returning a specific page (1997) WebCat2 - [format thousands] (1997) Nested tags count question (1997) Question (1997) [addlineitems] (1997) Re(3): Small Bug: ErrorLog.txt/[FORMVARIABLES]/[ORDERFILE] (1998)