{"id":500,"date":"2011-09-26T23:33:58","date_gmt":"2011-09-26T18:33:58","guid":{"rendered":"http:\/\/www.esearing.com\/v2010\/?p=500"},"modified":"2011-09-26T23:33:58","modified_gmt":"2011-09-26T18:33:58","slug":"cfinvoke-passing-parameters-by-using-attribute-format","status":"publish","type":"post","link":"https:\/\/www.esearing.com\/v2010\/2011\/09\/cfinvoke-passing-parameters-by-using-attribute-format\/","title":{"rendered":"CFINVOKE Passing parameters by using attribute format"},"content":{"rendered":"<p>Found this useful today:<br \/>\nYou can pass parameters in the cfinvoke tag as tag attribute name-value pairs, as the following example shows. You can also use a relative path to the CFC.<\/p>\n<p><code>&lt;cfinvoke component=\"\/path\/to\/authQuery\" method=\"getAuthSecure\"<br \/>\n    lastName=\"#session.username#\" pwd=\"#url.password#\" \/&gt;<\/code><\/p>\n<p>can also be written as<\/p>\n<p><code>&lt;cfinvoke component=\"\/path\/to\/authQuery\" method=\"getAuthSecure\"><br \/>\n    &lt;cfinvokeargument name=\"lastName\" value=\"#session.username#\"&gt;<br \/>\n    &lt;cfinvokeargument name=\"pwd\" value=\"#url.password#\"&gt;<br \/>\n&lt;\/cfinvoke&gt;<\/code> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Found this useful today: You can pass parameters in the cfinvoke tag as tag attribute name-value pairs, as the following example shows. You can also use a relative path to the CFC. &lt;cfinvoke component=&#8221;\/path\/to\/authQuery&#8221; method=&#8221;getAuthSecure&#8221; lastName=&#8221;#session.username#&#8221; pwd=&#8221;#url.password#&#8221; \/&gt; can also &hellip; <a href=\"https:\/\/www.esearing.com\/v2010\/2011\/09\/cfinvoke-passing-parameters-by-using-attribute-format\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,16,24],"tags":[],"class_list":["post-500","post","type-post","status-publish","format-standard","hentry","category-code","category-coldfusion","category-snippets-quick-code-tips-for-single-elements-attributes-or-details"],"_links":{"self":[{"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/posts\/500","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/comments?post=500"}],"version-history":[{"count":2,"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/posts\/500\/revisions"}],"predecessor-version":[{"id":502,"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/posts\/500\/revisions\/502"}],"wp:attachment":[{"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/media?parent=500"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/categories?post=500"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/tags?post=500"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}