0

我在下面有一个代码

<cffunction name="DeleteRecord">
    <cfargument name="myFusebox" />
    <cfargument name="event" />

    <cfset event.xfa("ShowForm", "app.ShowForm") />
    <cfset event.xfa("AddNew", "app.AddNew") />
    <cfset event.xfa("EditRecord", "app.EditRecord") />
    <cfset event.xfa("DeleteRecord", "app.DeleteRecord") />
    <cfset event.xfa("UpdateRecord", "app.UpdateRecord") />

    <cfset DeleteForecastRecord = application.report.ForecastRecordDelete(event.getValue("id"))/>

    <cflocation url="#myFusebox.getMyself()##event.xfa('manageforecastreport')#" addtoken="false" />

</cffunction>

在我下面的 cfc 文件中

<!--- ::::: Forecast Record Show ::::: --->
<cffunction name="ForecastRecordShow" returntype="query" access="public" output="true" hint="Add Forecast Record">
    <cfargument name="ForecastID" type="any" default="">
    <cfquery name="qryGetForcastRecord" datasource="#variables.dsn#">
        SELECT * FROM tbl_forecast  
        WHERE ForecastID = <cfqueryparam cfsqltype="cf_sql_integer" value="#trim(arguments.ForecastID)#">
    </cfquery>
    <cfreturn qryGetForcastRecord>
</cffunction>   

我有一个错误

解析的文件“app.deleterecord.cfm”已更改或不存在请求失败,出现异常“应用程序”(在组件 C:\Websites\LiquidMetalWheel.com\DiscountTire_dev\model\report.cfc 中找不到方法 ForecastRecordDelete。)方法在组件 C:\Websites\mysite.com\model\report.cfc 中找不到 ForecastRecordDelete。

请帮助我解决此错误

4

1 回答 1

0

确保“模式”设置为 dev 而不是 prod(我认为是 prod)。当设置为 prod 时,它将假定已解析目录中的文件是正确的。当设置为 dev 时,它会“重新解析”每个请求的所有熔断器。

“模式”设置隐藏在您的保险丝盒设置中 - 检查 fbx_settings.cfm 文件。我是凭记忆做的,所以我可能对设置的名称有误(可能是 appsettingStyle 或类似的东西)。

于 2012-07-24T12:57:37.280 回答