tracker issue : CF-4203970

select a category, or use search below
(searches all categories and all time range)
Title:

CFGrid is build it's jsavascript with an apostrophe in the wrong place.

| View in Tracker

Status/Resolution/Reason: Closed/Deferred/CannotReproduce

Reporter/Name(from Bugbase): jules g. / ()

Created: 01/24/2019

Components: AJAX

Versions: 2016

Failure Type: Non Functioning

Found In Build/Fixed In Build: 2018.0.01.311402 / NA

Priority/Frequency: Normal / Unknown

Locale/System: / Platforms All

Vote Count: 0

Problem Description:
CFGrid JS fails because of a misplaced apostrophe.

Steps to Reproduce:
Not sure exactly... make a cfgrid. This is my code:
<cfscript>
args = {};
// bind grid to structure returned by getArtists method
args.bind = "cfc:products.getProds({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection},'#url.brandid#')";
args.delete = FALSE;
args.format = "html";
args.insert = TRUE;
args.name = "prodGrid";
// bind onchange event to saveArtist method
args.onchange = "cfc:products.saveProd({cfgridaction},{cfgridrow},{cfgridchanged},'#url.brandid#')";
args.pagesize = "20";
args.selectmode = "edit";
args.striperows = TRUE;
//args.deleteButton = "[Delete]";
//args.insertButton = "[Add]";
args.width= session.bodyWidth;
args.autoWidth="no";
args.onLoad = "initMore";
</cfscript>
<cfform name="artistform">
  <cfgrid attributecollection="#args#">
    <cfgridcolumn display="yes" headerMenu="no" select="yes" name="Layer" header="Layer" values="AdPro,Primer,Sealer,Color,Clear"    />
    <cfgridcolumn display="yes" headerMenu="no" select="yes" name="Active" values="1,0" />
    <cfgridcolumn display="yes" headerMenu="no" select="yes" name="Name"    />
    <cfgridcolumn display="yes" headerMenu="no" select="no" attributeCollection="#application.cfgrifcoldisbled#" name="totalTime" />
    <cfgridcolumn display="yes" headerMenu="no" select="no" attributeCollection="#application.cfgrifcoldisbled#" name="RFUqt" />
    <cfgridcolumn display="yes" headerMenu="no" select="no" attributeCollection="#application.cfgrifcoldisbled#" name="RFUft" />
    <cfgridcolumn display="yes" headerMenu="no" select="yes" name="part1code" header="Part1" values="None,#valueList(allprods.code)#"   />
    <cfgridcolumn display="yes" headerMenu="no" select="yes" name="part2code" header="Part2" values="None,#valueList(allprods.code)#"   />
    <cfgridcolumn display="yes" headerMenu="no" select="yes" name="part3code" header="Part3" values="None,#valueList(allprods.code)#"   />
    <cfgridcolumn display="yes" headerMenu="no" select="yes" name="part4code" header="Part4" values="None,#valueList(allprods.code)#"   />
    <cfgridcolumn display="yes" headerMenu="no" select="yes" name="ratio1" />
    <cfgridcolumn display="yes" headerMenu="no" select="yes" name="ratio2" />
    <cfgridcolumn display="yes" headerMenu="no" select="yes" name="ratio3" />
    <cfgridcolumn display="yes" headerMenu="no" select="yes" name="ratio4" />
    <cfgridcolumn display="yes" headerMenu="no" select="yes" name="coats" />
    <cfgridcolumn display="yes" headerMenu="no" select="yes" name="flashtime" />
    <cfgridcolumn display="yes" headerMenu="no" select="yes" name="flash2time" />
    <cfgridcolumn display="yes" headerMenu="no" select="yes" name="baketime" />
    <cfgridcolumn display="yes" headerMenu="no" select="yes" name="coverageSQftGal" />
    <cfgridcolumn display="yes" headerMenu="no" select="yes" name="coverageMils" />
    <cfgridcolumn display="yes" headerMenu="no" select="yes" name="coverageMilsRec" />
    <cfgridcolumn display="yes" headerMenu="no" select="no" attributeCollection="#application.cfgrifcoldisbled#" name="w" />
    <cfgridcolumn display="yes" headerMenu="no" select="no" attributeCollection="#application.cfgrifcoldisbled#" name="x" />
    <cfgridcolumn display="yes" headerMenu="no" select="no" attributeCollection="#application.cfgrifcoldisbled#" name="y" />
    <cfgridcolumn display="yes" headerMenu="no" select="no" attributeCollection="#application.cfgrifcoldisbled#" name="z" />
    <cfgridcolumn display="yes" headerMenu="no" select="no" attributeCollection="#application.cfgrifcoldisbled#" name="aa" />
    <cfgridcolumn display="yes" headerMenu="no" select="no" attributeCollection="#application.cfgrifcoldisbled#" name="ab" />
    <cfgridcolumn display="yes" headerMenu="no" select="no" attributeCollection="#application.cfgrifcoldisbled#" name="ac" />
    <cfgridcolumn display="yes" headerMenu="no" select="no" attributeCollection="#application.cfgrifcoldisbled#" name="ae" />
    <cfgridcolumn display="yes" headerMenu="no" select="no" attributeCollection="#application.cfgrifcoldisbled#" name="af" />
    <cfgridcolumn display="yes" headerMenu="no" select="no" attributeCollection="#application.cfgrifcoldisbled#" name="ag" />
    <cfgridcolumn display="yes" headerMenu="no" select="no" attributeCollection="#application.cfgrifcoldisbled#" name="ah" />
    <cfgridcolumn display="yes" headerMenu="no" select="no" attributeCollection="#application.cfgrifcoldisbled#" name="ai" />
    <cfgridcolumn display="yes" headerMenu="no" select="no" attributeCollection="#application.cfgrifcoldisbled#" name="aj" />
    <cfgridcolumn display="yes" headerMenu="no" select="no" attributeCollection="#application.cfgrifcoldisbled#" name="ak" />
    <cfgridcolumn display="yes" headerMenu="no" select="no" attributeCollection="#application.cfgrifcoldisbled#" name="al" />
    <cfgridcolumn display="yes" headerMenu="no" select="no" attributeCollection="#application.cfgrifcoldisbled#" name="am" />
    <cfgridcolumn display="yes" headerMenu="no" select="no" attributeCollection="#application.cfgrifcoldisbled#" name="an" />
    <cfgridcolumn display="no"  headerMenu="no" select="yes" name="brandid"      />
    <cfgridcolumn display="no"  headerMenu="no" select="yes" name="id"      />
  </cfgrid>
</cfform>


Actual Result:
ColdFusion.Grid.GridBindelementsMap['prodGrid'] = 'brandid,'F3EAE701-9F0D-F203-235634F79F56AF0F'';

Expected Result:
ColdFusion.Grid.GridBindelementsMap['prodGrid'] = 'brandid','F3EAE701-9F0D-F203-235634F79F56AF0F';

Any Workarounds:

Attachments:

Comments:

Hi Jules, Can you please share a simple working repro if not the cfc's The shared code has dependencies on Application.cfc and cfc:products.saveProd which are not shared Thanks, Manas
Comment by Manas M.
30463 | March 11, 2019 08:14:33 AM GMT
Hi Jules, Any updates/repro which you can share??
Comment by Manas M.
30635 | April 16, 2019 12:21:44 PM GMT
Closing this as there is no reply from the reporter. Will be reopened incase a repro is available
Comment by Manas M.
30651 | April 24, 2019 10:29:11 AM GMT