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: Open//

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 /

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: