Re: help with duplicate records posted

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 20041
interpreted = N
texte = >>Has anyone dealt with this? Should I be searching the database to see if >>the record exists before I append to the database? Any help would be >>great. > >That's the best idea, although you might be able to get away with a >different approach: don't put the sku into form variables anywhere -- >generate it on-the-fly at the page that does the Append. That way people >can't back up to previous forms that have embedded skus in them. I am not too sure I follow what you mean by:>don't put the sku into form variables anywhere -- >generate it on-the-fly at the page that does the Append.I am posting the SKU like this:Are you suggesting that I would have the person who fills out the form get a page where they can approve the posting before it goes to the database, and at that point have the SKU generated?What about what Christer Olsson said:>Use a [Replace] context with append=T instead. That way all new records >(SKUs not existing in your db) will be appended and all existing records >will just be replaced.Is this a cool way to do it?? I think it looks real good.- ck_______________________________________________________________ Charles Kline ckline@macsultants.com MacSultants Professional Solutions for Computer Systems Associated Messages, from the most recent to the oldest:

    
  1. Re: help with duplicate records posted (Kenneth Grome 1998)
  2. MySolution - was - Re: help with duplicate records posted (charles kline 1998)
  3. Re: help with duplicate records posted (charles kline 1998)
  4. Re: help with duplicate records posted (Kenneth Grome 1998)
  5. Re: help with duplicate records posted (charles kline 1998)
  6. Re: help with duplicate records posted (PCS Technical Support 1998)
  7. Re: help with duplicate records posted (Christer Olsson 1998)
  8. help with duplicate records posted (charles kline 1998)
>>Has anyone dealt with this? Should I be searching the database to see if >>the record exists before I append to the database? Any help would be >>great. > >That's the best idea, although you might be able to get away with a >different approach: don't put the sku into form variables anywhere -- >generate it on-the-fly at the page that does the Append. That way people >can't back up to previous forms that have embedded skus in them. I am not too sure I follow what you mean by:>don't put the sku into form variables anywhere -- >generate it on-the-fly at the page that does the Append.I am posting the SKU like this:Are you suggesting that I would have the person who fills out the form get a page where they can approve the posting before it goes to the database, and at that point have the SKU generated?What about what Christer Olsson said:>Use a [replace] context with append=T instead. That way all new records >(SKUs not existing in your db) will be appended and all existing records >will just be replaced.Is this a cool way to do it?? I think it looks real good.- ck_______________________________________________________________ Charles Kline ckline@macsultants.com MacSultants Professional Solutions for Computer Systems charles kline

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:

Test! (2003) What am I missing (1997) sendmail spaces (1997) Question about replacing words (1998) show if date < expiry date (small corrections) (2002) WCS Newbie question (1997) WebCatalog 4.0.1 has been released! (2000) No spaces allowed in text variable names ... ? (2002) Web Merchant Docs? (2002) Fufillment e-mail? (1998) Transfer of data from Invoice to thank you templates (1998) Bug? I don't know... (1999) First postarg not taking in $Commands (1997) Summ=T Problem (1997) WebCatalog NT (1996) graphic to appear automatically... (2000) RE: How much ram??? (1997) Shipping.db (1998) WebCatalog can't find database (1997) multiple prices (1998)