3 Replies Latest reply on Feb 3, 2010 11:50 AM by didier.ljc

    help with cfgrid / component

    didier.ljc

      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},{cf gridsortcolumn},{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...