I have a cfc that works fine in tag mode:
<cfcomponent output="false">
<cffunction name=GetCases access="remote" returntype=Any returnformat=JSON>
<cfquery name="QryCases" datasource=#session.dsn# >
select id,surname,forename,died,dob,status from tbcases
</cfquery>
<cfreturn (QryCases)>
</cffunction>
</cfcomponent>
However the cfscript version fails and I just cant see why:
component
{
function any GetCases() access="remote" returntype="any" returnformat="json"
{
QryCases = Queryexecute("
select id,surname,forename,died,dob,status from tbcases
","",{datasource=session.dsn});
return QryCases;
}
}
So both of these will work fine in ACF v2016 however only the script one works in Lucee v5. The json result is for Jquery Datatables
thanks for any pointers.