• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

help with cfgrid / component

New Here ,
Feb 02, 2010 Feb 02, 2010

Copy link to clipboard

Copied

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

TOPICS
Advanced techniques

Views

536

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Feb 03, 2010 Feb 03, 2010

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 03, 2010 Feb 03, 2010

Copy link to clipboard

Copied

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

Can you help?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 03, 2010 Feb 03, 2010

Copy link to clipboard

Copied

LATEST

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

Can you help?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation