Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

CF Evaluate

New Here ,
Apr 12, 2011 Apr 12, 2011

I can't get evaluate to resolve URL strings that I pull from my database.

Here's an example of a URL that's stored in my database:

my_long_url.cfm?thisCity=#url.thisCity#&GroupVal=#URLEncodedFormat(URL.GROUPVAL)#

When I get the value from my database I can't get it to resolve the variables in the string. Here's what the end result should look like:

my_long_url.cfm?thisCity=Dallas&GroupVal=Parking Tickets

Here's my code:

<cfoutput query="tabs">

     #evaluate("tabs.url")#

</cfoutput>

I'd appreciate any help. Thanks!

-Aaron

738
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Contributor , Apr 12, 2011 Apr 12, 2011

You're trying to evaluate a simple string "tabs.url", instead of the query

column value. Try this:

#evaluate(de(url))#

</cfoutput

Translate
Contributor ,
Apr 12, 2011 Apr 12, 2011

You're trying to evaluate a simple string "tabs.url", instead of the query

column value. Try this:

#evaluate(de(url))#

</cfoutput

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 12, 2011 Apr 12, 2011
LATEST

Perfect! Thank you!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources