Need to reference a query located inside a custom tag
i have standard cfm page calls custom tag , results displayed fine. need lisfind on of results on page though, , error when try reference query. how can reference query? below code:
<html>
<body>
<cf_testdata>
<!--- need listfind here of query results in above custom tag (testdata) how can reference it? using query name not work --->
</body>
</html>
<html>
<body>
<cf_testdata>
<!--- need listfind here of query results in above custom tag (testdata) how can reference it? using query name not work --->
</body>
</html>
your custom tag has send query variable calling page. here example
custon tag code
<cfparam name="attributes.startvariable" default="datestart">
bunch of code
<cfset rslt=evaluate("caller.#attributes.startvariable# = datestart")>
calling page code
<cf_mycustomtag startvariable="myvar">
local variable myvar has value returned custom tag.
custon tag code
<cfparam name="attributes.startvariable" default="datestart">
bunch of code
<cfset rslt=evaluate("caller.#attributes.startvariable# = datestart")>
calling page code
<cf_mycustomtag startvariable="myvar">
local variable myvar has value returned custom tag.
More discussions in ColdFusion
adobe
Comments
Post a Comment