Re: SKU Question

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 24357
interpreted = N
texte = I tried what Jesse recommend using it this way:[search db=mydatabase.db&eqSKUdata=[sku]][founditems][showif [numFound]=0] [append] [/showif][/founditems]If it is the first time I use this SKU, I suppose that [numFound] will be 0 but it doesn't append it, I don't know why.Am I doing somethig wrong?On the other hand, Howard said:you could generate the SKU on the same form where they enter the rest of the info, and on the submitted page,. Then, if they go back and submit again, the record will not be added because the replace will already see a record with that sku, so it will replace it, otherwise if it doesn't aleady exist, it will add it. I don't understand, what does use a replace with append=t means. I'm just learning.Ken said: use an append context and put the code that creates your SKU inside the context instead of in the form I'm using the append context and I can do it. It is true the SKU will be not duplcated (Good Idea) but the item will be duplicated with different SKU.Are there a way to prevent this?Thanks for your support.Rodolfo de la Garza The 11/13/99 12:47 PM Jesse Williams Proudman lists@ninewire.com wrote>On the page that appends it, check to see if the sku is in use with a >search. > >Jesse Williams Proudman - NineWire Production > http://www.ninewire.com <-> Jesse@ninewire.com > Innovative and Creative Web Design and Hosting > >> -----Original Message----- >> From: WebCatalog Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On >> Behalf Of Rodolfo de la Garza >> Sent: Saturday, November 13, 1999 10:47 AM >> To: WebCatalog Talk >> Subject: SKU Question >> >> >> Hi there, >> >> How can I prevent SKU to be duplicated by error? >> If the user click the back button and submit again the item the SKU will >> be duplicated. >> >> Any Idea? >> >> Thanks. >> >> >> ------------------------------------------------------------- >> 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 >> >> > > >------------------------------------------------------------- >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 > ------------------------------------------------------------- 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: SKU Question (Aaron Lynch 1999)
  2. Re: SKU Question (Jesse Williams Proudman 1999)
  3. Re: SKU Question (J. A. Hill 1999)
  4. Re: SKU Question (Rodolfo de la Garza 1999)
  5. Re: SKU Question (Aaron Lynch 1999)
  6. Re: SKU Question (Rodolfo de la Garza 1999)
  7. Re: SKU Question (Kenneth Grome 1999)
  8. Re: SKU Question (Howard Wolosky 1999)
  9. Re: SKU Question (Jesse Williams Proudman 1999)
  10. SKU Question (Rodolfo de la Garza 1999)
I tried what Jesse recommend using it this way:[search db=mydatabase.db&eqSKUdata=[sku]][founditems][showif [numFound]=0] [append] [/showif][/founditems]If it is the first time I use this SKU, I suppose that [numFound] will be 0 but it doesn't append it, I don't know why.Am I doing somethig wrong?On the other hand, Howard said:you could generate the SKU on the same form where they enter the rest of the info, and on the submitted page,. Then, if they go back and submit again, the record will not be added because the replace will already see a record with that sku, so it will replace it, otherwise if it doesn't aleady exist, it will add it. I don't understand, what does use a replace with append=t means. I'm just learning.Ken said: use an append context and put the code that creates your SKU inside the context instead of in the form I'm using the append context and I can do it. It is true the SKU will be not duplcated (Good Idea) but the item will be duplicated with different SKU.Are there a way to prevent this?Thanks for your support.Rodolfo de la Garza The 11/13/99 12:47 PM Jesse Williams Proudman lists@ninewire.com wrote>On the page that appends it, check to see if the sku is in use with a >search. > >Jesse Williams Proudman - NineWire Production > http://www.ninewire.com <-> Jesse@ninewire.com > Innovative and Creative Web Design and Hosting > >> -----Original Message----- >> From: WebCatalog Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On >> Behalf Of Rodolfo de la Garza >> Sent: Saturday, November 13, 1999 10:47 AM >> To: WebCatalog Talk >> Subject: SKU Question >> >> >> Hi there, >> >> How can I prevent SKU to be duplicated by error? >> If the user click the back button and submit again the item the SKU will >> be duplicated. >> >> Any Idea? >> >> Thanks. >> >> >> ------------------------------------------------------------- >> 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 >> >> > > >------------------------------------------------------------- >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 > ------------------------------------------------------------- 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 Rodolfo de la Garza

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:

Help! WebCat2 bug (1997) Random Order Sort? (2000) SMSI: WebDNA Versions? (2002) Graphs & diagrams (2003) Sendmail problem on UNIX (2000) affiliate marketing program (1998) autosensing lanague selection (1997) Execute Applescript (1997) still having shipCost.db Problem (1997) Re[2]: Enhancement Request for WebCatalog-NT (1996) Wanted: More Math Functions (or, Can You Solve This?) (1997) [Sum] function? (1997) HELP WITH DATES (1997) Resetting a Formvariable (2000) 3+ Levels of Navigation (2006) Can you do this??? and other stuff (1997) Occasional crashes with $remove (1997) (1997) Help with getting rpm file (2002) Buying sans cart (1997)