What EXACTLY does it return? Nothing at all? A query with the
correct
columns but no row? Something else?
I have to concede I've never put any bar the "standard"
methods into
Application.cfc, but understand it's possible. I wouldn't
havr thought
they'd be invoked by creating an instance of the
Application.cfc though,
rather just:
<cfset result = application.myFunction(args=values)>
I can't test this currently though.
It's rather a strange CFC to want to put that sort of method
in though. I
would only put methods specific to the actual application,
session or
request scopes in that CFC. I'd have a Journey.cfc to deal
with journey
type things.
It's nothing to do with your issue, but you should be VARing
your
variables. And using <cfqueryparam> for you dynamic
query parameters, so
they actually *are* treated as dynamic, rather than just part
of the SQL
statement.
Indeed looking more at your SQL, you're using hard-coded
strings for things
like originStationCode, rather than the actual variable
you're passing in.
I doubt that query - withouth modification - actually *does*
work
elsewhere.
--
Adam
--
Adam