tracker issue : CF-3964189

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

CFGRIDCOLUMN HREF attribute not binding with column returned from CFC

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Eric Gutke / Eric Gutke (Eric Gutke)

Created: 04/02/2015

Components: AJAX, UI Components

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Major / Some users will encounter

Locale/System: English / Windows 7 SP1 64-bit

Vote Count: 2

Listed in the version 2016.0.0.297996 Issues Fixed doc
Verification notes: verified_fixed on July 23, 2017 using build 2016.0.01.298513
Problem Description:  

CFGRID is bound to a CFC that returns query results.  One of the CFGRIDCOLUMN uses the HREF attribute with one of the columns of the returned query.  This worked fine in CF9, but in CF11 the HREF link is trying to open the literal name of the column, not the value from the query.

Steps to Reproduce:
Here is the code that previously worked. The bind CFC returns a queryConvertForGrid() query that includes itemid and getURL columns.

                        <cfgrid 
                            name="myGrid" 
                            bindOnLoad="yes" 
                            format="html"
                            appendKey="no"
                            pageSize="20"
                            stripeRows="yes"
                            selectMode="edit"
                            selectOnLoad="no"
                            onChange="javascript: checkStatus({cfgridaction},{cfgridrow},{cfgridchanged})"
                            width="1150"
                            bind="cfc:Maintenance.findItems(
                                    itemId={itemId@change},
                                    gridPage={cfgridpage},
                                    gridPageSize={cfgridpagesize},
                                    gridSortColumn={cfgridsortcolumn},
                                    gridSortDirection={cfgridsortdirection}
                                    )" >
                            <cfgridcolumn name="itemId" header="Item ID" dataalign="left" select="no" width="70">                                
                            <cfgridcolumn name="name" header="Name" dataalign="left" select="no" width="300" href="getURL">

Actual Result:
The value of the getURL column returned is "http://myReturnedURL.com", however the link produced in the CFGRIDCOLUMN is actually "{webroot}/getURL"

Expected Result:
The link produced in the CFGRIDCOLUMN should be "http://myReturnedURL.com"


Any Workarounds:
None so far.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3964189

External Customer Info:
External Company:  
External Customer Name: Eric
External Customer Email:  
External Test Config: My Hardware and Environment details:

Server Product	ColdFusion

Version	11,0,04,293328

Edition	Developer  

Operating System	Windows 7  

OS Version	6.1  

Update Level	/D:/ColdFusion11/cfusion/lib/updates/chf11000004.jar  

Adobe Driver Version	5.1.3 (Build 000094)

Attachments:

  1. April 03, 2015 00:00:00: 1_serversettings.pdf

Comments:

See attachment for full CF server settings.
Comment by External U.
7927 | April 02, 2015 12:30:06 PM GMT
I verified that the returned getURL column value is correct by adding a column to the CFGRID. <cfgridcolumn name="getURL" header="MyURL" dataalign="left" select="no" width="300"> This did show that the value was in the returned query as expected.
Comment by External U.
7928 | April 02, 2015 12:33:18 PM GMT
One additional note. When I add HREFKEY="getURL" to my CFGRIDCOLUMN, it generates the link {webroot}/getURL?CFGRIDKEY=http://myReturnedURL.com So HREFKEY gets the value just fine, but not the HREF attribute.
Comment by External U.
7929 | April 02, 2015 01:15:25 PM GMT
We are seeing the same issue. Have confirmed that the response coming back from the cfc is correct, but the link goes to ourURL.com/exactlyWhatIsTypedInHREFAttribute.
Vote by External U.
7931 | April 10, 2015 10:46:34 AM GMT
We are also experiencing this issue; in code that worked in earlier CF versions to generate a mailto: tag from a directory, the variable for the href is no longer evaluated, it just passes the literal name for the variable.
Vote by External U.
7932 | May 29, 2015 10:44:42 AM GMT
Verified this is fixed in CF2016 Update 1 (build 2016.0.01.298513). Thanks!, -Aaron
Comment by Aaron N.
7930 | July 23, 2017 05:34:57 AM GMT