Re: Resetting a Formvariable

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 35218
interpreted = N
texte = As far as I know, you can not reassign a value to a fomrvariable. There are ways to get around, after you reset the value of quantityordered, how are you using that variable? If you want to append this value into the database, you can do this [showif [quantityordered]>[numavailable]] [text]NewQtyOrdered=[numavailable][/text] [/showif][hideif [quantityordered]>[numavailable]] [text]NewQtyOrdered=[quantityordered][/text] [/hideif]after this point, instead of [quantityordered] variable you can use [NewQtyOrdered] variable.Can this work for you? ========================================================== _O_/\NUP Setty / | \/ERTical Net / \ http://www.vertical.net _\ \_ 336-218-8562 Ext. 218 o o o o ========================================================== ----- Original Message ----- From: Glenn Busbin To: WebCatalog Talk Sent: Wednesday, July 26, 2000 2:07 PM Subject: Resetting a Formvariable > I'm passing a formvariable ok, but need to evaluate it after it's passed. > If [quantityordered] is greater than [numavailable], I want to reset > [quantityordered] = [numavailable]. > > I'm using: > > [showif [quantityordered]>[numavailable]] > [Math][quantityordered]=[numavailable][/math][/showif] > > This always sets [quantityordered]=0 no matter how large [numavailable] is. > > Using: > [Formvariables] > [quantityordered], [numavailable] > [/Formvariables] > > shows that the correct values are being passed. > > Why can't I reset the value of this variable as per the docs for WC3? > > Thanks, > Glenn > > > > ------------------------------------------------------------- > 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 > Web Archive of this list is at: http://search.smithmicro.com/ ------------------------------------------------------------- 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 Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Resetting a Formvariable (John Butler 2000)
  2. Re: Resetting a Formvariable (Glenn Busbin 2000)
  3. Re: Resetting a Formvariable (Glenn Busbin 2000)
  4. Re: Resetting a Formvariable (John Peacock 2000)
  5. Re: Resetting a Formvariable (John Butler 2000)
  6. Re: Resetting a Formvariable (John Butler 2000)
  7. Re: Resetting a Formvariable (Glenn Busbin 2000)
  8. Re: Resetting a Formvariable (Rob Marquardt 2000)
  9. Re: Resetting a Formvariable (Glenn Busbin 2000)
  10. Re: Resetting a Formvariable (Glenn Busbin 2000)
  11. Re: Resetting a Formvariable (Rob Marquardt 2000)
  12. Re: Resetting a Formvariable (WebDNA Support 2000)
  13. Re: Resetting a Formvariable (Anup Setty 2000)
  14. Re: Resetting a Formvariable (Kenneth Grome 2000)
  15. Re: Resetting a Formvariable (Glenn Busbin 2000)
  16. Re: Resetting a Formvariable (John Butler 2000)
  17. Re: Resetting a Formvariable (Glenn Busbin 2000)
  18. Re: Resetting a Formvariable (Glenn Busbin 2000)
  19. Re: Resetting a Formvariable (John Peacock 2000)
  20. Re: Resetting a Formvariable (John Butler 2000)
  21. Re: Resetting a Formvariable (James Howarth 2000)
  22. Resetting a Formvariable (Glenn Busbin 2000)
As far as I know, you can not reassign a value to a fomrvariable. There are ways to get around, after you reset the value of quantityordered, how are you using that variable? If you want to append this value into the database, you can do this [showif [quantityordered]>[numavailable]] [text]NewQtyOrdered=[numavailable][/text] [/showif][hideif [quantityordered]>[numavailable]] [text]NewQtyOrdered=[quantityordered][/text] [/hideif]after this point, instead of [quantityordered] variable you can use [NewQtyOrdered] variable.Can this work for you? ========================================================== _O_/\NUP Setty / | \/ERTical Net / \ http://www.vertical.net _\ \_ 336-218-8562 Ext. 218 o o o o ========================================================== ----- Original Message ----- From: Glenn Busbin To: WebCatalog Talk Sent: Wednesday, July 26, 2000 2:07 PM Subject: Resetting a Formvariable > I'm passing a formvariable ok, but need to evaluate it after it's passed. > If [quantityordered] is greater than [numavailable], I want to reset > [quantityordered] = [numavailable]. > > I'm using: > > [showif [quantityordered]>[numavailable]] > [math][quantityordered]=[numavailable][/math][/showif] > > This always sets [quantityordered]=0 no matter how large [numavailable] is. > > Using: > [formvariables] > [quantityordered], [numavailable] > [/Formvariables] > > shows that the correct values are being passed. > > Why can't I reset the value of this variable as per the docs for WC3? > > Thanks, > Glenn > > > > ------------------------------------------------------------- > 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 > Web Archive of this list is at: http://search.smithmicro.com/ ------------------------------------------------------------- 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 Web Archive of this list is at: http://search.smithmicro.com/ Anup Setty

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:

WCS Newbie question (1997) [cart] (1998) change sku in lineitem? (2004) Bug? (1997) all records returned. (1997) absolute paths for databases? (1997) suffix mapping, use of cache, etc. (1997) A quickie question (1997) WC2b15 - [HTMLx]...[/HTMLx] problems (1997) creating a 60 fields database (1997) help testing quicktime delivery (1997) Getting total number of items ordered (1997) Re:Emailer and encryption (1997) & Aftermath (1999) Shopping Cart Problems (2000) [WebDNA] DB help (2011) newbie question about zip code search (2003) [WriteFile] problems (1997) Need relative path explanation (1997) Include a big block of text (1997)