Skip to main content
Participant
April 12, 2011
Answered

CF Evaluate

  • April 12, 2011
  • 1 reply
  • 725 views

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

    This topic has been closed for replies.
    Correct answer JMF3

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

    column value. Try this:

    #evaluate(de(url))#

    </cfoutput

    1 reply

    JMF3Correct answer
    Participating Frequently
    April 12, 2011

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

    column value. Try this:

    #evaluate(de(url))#

    </cfoutput

    Participant
    April 12, 2011

    Perfect! Thank you!