Re: ConverChars

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 23817
interpreted = N
texte = >I don't actually want to replace the value in the database itself. I have >simplified the logic to using only one character, so now all I am really >trying to do is something like the following: > >temp1=[ConvertChars db=shapes.db][GetChars >start=1&end=1][style][/GetChars][/ConvertChars] > >I can see temp1 gets the value I expect as it gets displays it on the page.No, actually it's *not* getting the value you think it is, or it would use that value in the link below. It's not getting the value because your code above does not assign temp1 to a value, it simply displays a value on the page, next to a string of text that looks like temp1=.If you really want that value assigned to a variable named temp1, you have to use a [text] context, like this:[text]temp1=[ConvertChars db=shapes.db][GetChars start=1&end=1][style][/GetChars][/ConvertChars][/text]Then when you use the [temp1] tag somewhere further on down the page, it will have an actual value, which means your link will probably work properly, assuming there's an actual record in your db with the sku you're referring to. But if the dynamic SKU you're creating does not appear in the db to begin with, you'll have to make some more changes before this will work:add to cart Sincerely, Ken Grome WebDNA Consultant Associated Messages, from the most recent to the oldest:

    
  1. Re: BUG: db= param of converchars within founditems loop ( Donovan Brooke 2005)
  2. BUG: db= param of converchars within founditems loop ( Donovan Brooke 2005)
  3. Re: converchars in sendmail context.... ( Alan White 2004)
  4. Re: converchars in sendmail context.... ( Donovan Brooke 2004)
  5. Re: converchars in sendmail context.... ( Alan White 2004)
  6. Re: converchars in sendmail context.... ( Donovan Brooke 2004)
  7. Re: converchars in sendmail context.... ( Donovan Brooke 2004)
  8. Re: converchars in sendmail context.... ( Alan White 2004)
  9. Re: converchars in sendmail context.... ( John Peacock 2004)
  10. Re: converchars in sendmail context.... ( Donovan Brooke 2004)
  11. Re: converchars in sendmail context.... ( Alex McCombie 2004)
  12. Re: converchars in sendmail context.... ( Rob Marquardt 2004)
  13. Re: converchars in sendmail context.... ( Alan White 2004)
  14. Re: converchars in sendmail context.... ( Donovan Brooke 2004)
  15. Re: converchars in sendmail context.... ( Alan White 2004)
  16. Re: converchars in sendmail context.... ( Alan White 2004)
  17. Re: converchars in sendmail context.... ( Donovan Brooke 2004)
  18. Re: converchars in sendmail context.... ( John Peacock 2004)
  19. Re: converchars in sendmail context.... ( Alan White 2004)
  20. converchars in sendmail context.... ( Alan White 2004)
  21. Re: ConverChars (Shelly M Medford 1999)
  22. Re: ConverChars (PCS Technical Support 1999)
  23. Re: ConverChars (Kenneth Grome 1999)
  24. Re: ConverChars (Jan Kinzler 1999)
  25. Re: ConverChars (charles kline 1999)
  26. Re: ConverChars (Alex McCombie 1999)
  27. Re: ConverChars (Jan Kinzler 1999)
  28. Re: ConverChars (Bob Minor 1999)
  29. Re: ConverChars (John Jakovich 1999)
  30. Re: ConverChars (Will Starck 1999)
  31. Re: ConverChars (charles kline 1999)
  32. ConverChars (Jan Kinzler 1999)
>I don't actually want to replace the value in the database itself. I have >simplified the logic to using only one character, so now all I am really >trying to do is something like the following: > >temp1=[ConvertChars db=shapes.db][GetChars >start=1&end=1][style][/GetChars][/ConvertChars] > >I can see temp1 gets the value I expect as it gets displays it on the page.No, actually it's *not* getting the value you think it is, or it would use that value in the link below. It's not getting the value because your code above does not assign temp1 to a value, it simply displays a value on the page, next to a string of text that looks like temp1=.If you really want that value assigned to a variable named temp1, you have to use a [text] context, like this:[text]temp1=[ConvertChars db=shapes.db][GetChars start=1&end=1][style][/GetChars][/ConvertChars][/text]Then when you use the [temp1] tag somewhere further on down the page, it will have an actual value, which means your link will probably work properly, assuming there's an actual record in your db with the sku you're referring to. But if the dynamic SKU you're creating does not appear in the db to begin with, you'll have to make some more changes before this will work:[cart]&db=catalog.db>add to cart Sincerely, Ken Grome WebDNA Consultant 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:

Error Lob.db records error message not name (1997) Not Authorised Adding Items (1998) Items XX to XX shown (1997) duplicate items in cart (1998) Help! 'An unknown error occurred: EMailNotCreated' (1999) [include file=filename.inc&strip=t] (2002) POST (1997) OT: Poll Please (2002) Needed, Freelance Web Developer (2007) Payments -> Bank Accounts (2005) [OT] Mail Error code 573?? (2006) Terry's formvariables tip (1998) Trouble with formula.db (1997) Sorting search by date. (2000) emailer on Windows Beta 18 (1997) Exclamation point (1997) help testing quicktime delivery (1997) Undocumented changes create problems in webcat 4 ... (2000) RE: PIXO support (1997) Founditems context returning only 1 item (1997)