Reputation: 55
Ok, I am new to Coldfusion components, though I think I understand them in concept. I have taken over a project and in the data access model, all I have is a cfm that has this line in it:
<!--- Invoke data service --->
<cfset Variables.namedService = createObject("component","services.namedService").init(datasource='dsname') />
I need to modify the sql behind this component, but can't figure out where to go look for it based on this createObject. Can someone point me in the right direction?
Upvotes: 3
Views: 88
Reputation: 20804
Run the page with debugging enabled. Look at the query in question. You should see something like this:
getDate (Datasource=dw, Time=15ms, Records=1) in D:\xx\xxx\CustomTags\Components\OR\CaseAndProceduresDan.cfc @ 13:31:04.004
sql for the getDate query
Upvotes: 2
Reputation: 7193
Look for a folder called "services" containing a file called "namedService.cfc". If you can't find the folder you might look for a mapping called "services" - mappings may be found in the Application.cfc (look for a line containing /Services) or in the CF admin.
In the end though - searching for NamedService.cfc will likely turn something up and make things clearer.
Upvotes: 4