Skip to main content
Participant
February 2, 2010
Question

help with cfgrid / component

  • February 2, 2010
  • 1 reply
  • 618 views

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},{cfgridpagesize},{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>

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...

This topic has been closed for replies.

1 reply

Participating Frequently
February 3, 2010

Is this code on the same page?  If not are the two different code nuggets in different folders?

Participant
February 3, 2010

Yes the two code blocks are on the same page...

Can you help?