help with cfgrid / component

Discussion in 'Programming' started by didijc, Feb 2, 2010.

  1. #1
    Hey everyone...

    I'm working on the following piece code

    <cfinvoke
    component="elements.assets.cf.components.Reports"
        method="pKreport"
        returnvariable="qryKres">
    </cfinvoke>
    
    <cfform name="Kform">
        <cfgrid name="pKreport"
            bindonload="true"
            sort="yes"
            highlighthref="yes"
            griddataalign="left"
            gridlines="yes"
            selectmode="row"
            insertbutton="Add" 
            deletebutton="Delete"
            enabled="yes"
            visible="yes"
            format="html"
            preservepageonsort="false"
            striperows="yes"
            selectonload="false"
            autowidth="false"
            pagesize="100"
    bind="cfc:elements.assets.cf.components.Reports.pKreport({cfgridpage},{cfgridpag esize},{cfgridsortcolumn},{cfgridsortdirection})">
           
            <cfgridcolumn name="buildingName"
                header="Building Name"
                headeralign="left"
                dataalign="left"   
                select="no"
                display="yes"
                headerbold="yes" />
            <cfgridcolumn name="allocatedSF"
                header="Allocated SF"
                headeralign="left"
                dataalign="left"   
                select="no"
                display="yes"
                headerbold="yes" />
            <cfgridcolumn name="capacity"
                header="Capacity"
                headeralign="left"
                dataalign="left"   
                select="no"
                display="yes"
                headerbold="yes" />
            <cfgridcolumn name="occupancy"
                header="Occupancy"
                headeralign="left"
                dataalign="left"   
                select="no"
                display="yes"
                headerbold="yes" />
            <cfgridcolumn name="vacancy"
                header="Vacancy"
                headeralign="left"
                dataalign="left"   
                select="no"
                display="yes"
                headerbold="yes" />
        </cfgrid>
    </cfform>
    Code (markup):
    But I keep getting the following error - and I'm not sure why...

    _________________________________________________________________
    The specified CFC elements.assets.cf.components.Reports 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.

    _________________________________________________________________

    I'm using the same component in both the cfinvoke & cfgrid -- it works fine with the cfinvoke... :mad: :confused:
     
    didijc, Feb 2, 2010 IP