[WebDNA] [lookup] fails when using [url] to wrap a value for potential "&" char?

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 103229
interpreted = N
texte = I am really surprised to see this behavior: This: [lookup db=^db/aaa.db&lookInField=bbb&value=[URL][ccc][/ URL]&returnField=ddd¬Found=eee] returns: eee But this: [lookup db=^db/ aaa.db&lookInField=bbb&value=[ccc]&returnField=ddd¬Found=eee] returns: the value I expect (the value for [ddd] in the found record). So then won't the latter (working) lookup break when the 'bbb' field may contain an "&" char (when we don't use [url])?! I can work around with [search].. but what if I need the speed of the [lookup]? -- Can anyone confirm this? Comment? -John Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] [lookup] fails when using [url] to wrap a value for potential "&" char? (John Butler 2009)
  2. Re: [WebDNA] [lookup] fails when using [url] to wrap a value for potential "&" char? (John Butler 2009)
  3. Re: [WebDNA] [lookup] fails when using [url] to wrap a value for potential "&" char? (Brian Fries 2009)
  4. [WebDNA] [lookup] fails when using [url] to wrap a value for potential "&" char? (John Butler 2009)
I am really surprised to see this behavior: This: [lookup db=^db/aaa.db&lookInField=bbb&value=[url][ccc][/ URL]&returnField=ddd¬Found=eee] returns: eee But this: [lookup db=^db/ aaa.db&lookInField=bbb&value=[ccc]&returnField=ddd¬Found=eee] returns: the value I expect (the value for [ddd] in the found record). So then won't the latter (working) lookup break when the 'bbb' field may contain an "&" char (when we don't use [url])?! I can work around with [search].. but what if I need the speed of the [lookup]? -- Can anyone confirm this? Comment? -John John Butler

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:

Quick ShowIf question (1997) pop up menu's (1998) [shell] (2002) LookUp Tag (1997) WebDNA tables and commas (2004) Stumpted Again (1997) Targeted Redirect (1999) Bug alert! (1997) [movefile] (1999) Secure server question (1997) Math function in Formula.db (1997) Search returns all, not 20 (1997) Errata: WCS Newbie question (1997) PLEASE REMOVE MY EMAIL ADDRESS (1997) multiple price line in formula.db (2004) Summaries (1999) Searchable list mail via wwebcat (1998) The USArea® Network web site ... (1997) JavaScript form question (2001) multi-paragraph fields (1997)