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 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...
Copy link to clipboard
Copied
Is this code on the same page? If not are the two different code nuggets in different folders?
Copy link to clipboard
Copied
Yes the two code blocks are on the same page...
Can you help?
Copy link to clipboard
Copied
Yes the two code blocks are on the same page...
Can you help?