Skip to main content
Gene_Godsey
Inspiring
December 21, 2010
Question

DATA GRID ISSUES

  • December 21, 2010
  • 1 reply
  • 1645 views

I have;

Function and form code:

------------------------------------

     <cfcomponent>

  <cffunction name="getArtists" access="remote">
        <cfargument name="page" required="yes">
        <cfargument name="pageSize" required="yes">
        <cfargument name="gridsortcolumn" required="yes">
        <cfargument name="gridsortdirection" required="yes">

    <cfquery name="members" datasource="pdgps" dbtype="ODBC">
        SELECT autoid, CONVERT(VARCHAR(10), sDate, 101) as DATE, DAGRSN, branch,
    DODAAC, clin, hours
  FROM reporting.DAGRSCRAPS
        <cfif gridsortcolumn neq ''>
        order by #gridsortcolumn# #gridsortdirection#
        </cfif>
    </cfquery>
    <cfreturn queryconvertforgrid(members,page,pagesize)/>
    </cffunction>

<cffunction name="tester" access="remote" returntype="String">
  <cfscript>
   x = "Hello";
  </cfscript>
  <cfreturn x>
</cffunction>

</cfcomponent>


<cfinvoke component="components.artist"  method="tester" returnvariable="Var">

<cfform name="tableform">
    <cfgrid format="html" name="grid_Tables" pagesize="7" selectmode="row"
bind="cfc:components.artist.getArtists({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection})">
                        <cfgridcolumn name="autoid" display="No"/>
                        <cfgridcolumn name="DATE" header="DATE" >
                        <cfgridcolumn name="DAGRSN" header="DAGRSN" >
                        <cfgridcolumn name="branch" header="SERVIVE" >
                        <cfgridcolumn name="DODAAC" header="DODAAC" >
    </cfgrid>
</cfform>

<cfdump var="#Var#">

------------------------------------

Error is:

------------------------------------

The specified CFC artist could not be found. 
The path to the CFC must be specified as a full path, or as a relative path from the current template, without the use of mappings. 
 
The error occurred in \\Vboxsvr\g_drive\Backup\pdgps\admin\backoffice\test.cfm: line 11

9 :                         <cfgridcolumn name="DAGRSN" header="DAGRSN" >
10 :                         <cfgridcolumn name="branch" header="SERVIVE" >
11 :                         <cfgridcolumn name="DODAAC" header="DODAAC" >
12 :     </cfgrid>
13 : </cfform>

--------------------------------------------------------------------------------


The following information is meant for the website developer for debugging purposes.
Error Occurred While Processing Request

The specified CFC artist could not be found.

The path to the CFC must be specified as a full path, or as a relative path from the current template, without the use of mappings.
The error occurred in \\Vboxsvr\g_drive\Backup\pdgps\admin\backoffice\test.cfm: line 11
9 :                         <cfgridcolumn name="DAGRSN" header="DAGRSN" >
10 :                         <cfgridcolumn name="branch" header="SERVIVE" >
11 :                         <cfgridcolumn name="DODAAC" header="DODAAC" >
12 :     </cfgrid>
13 : </cfform>

ANY IDEAS?

    This topic has been closed for replies.

    1 reply

    ilssac
    Inspiring
    December 21, 2010

    Gene Godsey wrote:

    ANY IDEAS?

    That the file "artist.cfc" is not inside a directory named "components" in any path that ColdFusion looked for it in.

    Gene_Godsey
    Inspiring
    December 21, 2010

    This has to be a path issue but the artist.cfc is inside of the components directory.

    ilssac
    Inspiring
    December 21, 2010

    Gene Godsey wrote:

    This has to be a path issue

    That is exactly what it is!

    Where is the components directory in relationship to the file that is trying to invoke the artists component in that directory.