Skip to main content
Participant
January 30, 2015
Question

CF11 - CFGRID & CFSELECT binding issue

  • January 30, 2015
  • 1 reply
  • 2048 views

We just upgraded to CF11 and one of our apps had pieces stop functioning. We have figured out most of it, however one of our cfgrids is having issues. When the page is loaded the cfgrid hits the CFC that is specified in the bind settings (passes in the default employee ID of 0 and returns no data). When we select an employee name from the dropdown menu, we receive a 400 error saying the page can't be found. When the select is changed, it looks like it reverts to the root path instead of the cfc specific in the bind argument. Does anyone have any idea on the direction we should go to fix this? The exact same code works on CF8... but is completely broken on CF11.

Thanks for your help.

    This topic has been closed for replies.

    1 reply

    BKBK
    Community Expert
    Community Expert
    January 31, 2015

    Could you show us the value of the bind attribute?

    Participant
    February 3, 2015

    Here is the cfselect that drives holds the employee number:

    <cfselect name="employee" query="EmployeeList" value="affiliateID" display="empName" queryPosition="below">

    <option value="0" selected="selected">--- Select an employee ---</option>

    </cfselect>

    Here is the bind statement:

    <cfset args.bind = "cfc:empEval.getCompletedEvals({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection},{employee})">

    On page load, the grid binds to the data based on the employee number of 0 (which is right since that is what is defaulted). However, no subsequent bind happens when {employee} changes. It used to work perfectly fine on CF7 and now doesn't work since we upgraded to CF11.

    Thanks!

    BKBK
    Community Expert
    Community Expert
    February 3, 2015

    jjdavis84 wrote:

    Here is the bind statement:

    <cfset args.bind = "cfc:empEval.getCompletedEvals({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridso rtdirection},{employee})">

    Sorry, the bind statement is something like

    <someTag bind="some_value">