Title:
Here’s how you provide CFFUNCTION tag attributes when converting it to a script function
| View in Portal<p>Have you needed to convert a CFFUNCTION to a script equivalent function or CFC method, and wondered how you would specify the things which had been attributes to the tag, such as OUTPUT, ROLES, RETURNFORMAT (added in CF8), or RESTPATH (added in CF10), to name just a few? It’s just not obvious. The quick answer is that you specify them AFTER the closing parenthesis which surrounds any arguments to the function. So, for example: public numeric testMethod (numeric arg1) returnFormat="json" […]</p>
<p>The post <a rel="nofollow" href="https://coldfusion.adobe.com/2017/11/heres-how-you-provide-cffunction-tag-attributes-when-converting-it-to-a-script-function/">Here’s how you provide CFFUNCTION tag attributes when converting it to a script function</a> appeared first on <a rel="nofollow" href="https://coldfusion.adobe.com">ColdFusion</a>.</p>
Comments: