Advertisement

12.28.2007 at 01:48PM PST, ID: 23048179 | Points: 125
[x]
Attachment Details

Bind Error in CFSELECT (from CFGRID)

Asked by anusha in ColdFusion Application Server

Tags: , ,

All,

I am getting the following error msg:
error:bind: Bind failed for select box role_id, bind value is not a 2D array or valid serialized query.
Not sure how to fix this. Code below.

  <cfgrid name="linkGrid"  format="html" pageSize=5 sort=true selectcolor="##CCCCCC"
bind="cfc:InternalUsers.getInternalUsersList({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection})">  
      <cfgridcolumn width="160" name="rol_role_name" header="Role">
      <cfgridcolumn name="ROL_ROLE_ID" display="no">
  </cfgrid>

<cfselect name="role_id" size="1"  bind="{linkGrid.ROL_ROLE_ID}">
<option value="0" >  --Select--  </option>
<cfoutput query="getRoles">
      <option value="#rol_role_id#">#rol_role_name#</option>
</cfoutput>
</cfselect>
If I check the bind value it shows correctly, but the item is not automatically selected from the drop down.

thanks
Start Free Trial
 
Loading Advertisement...
 
[+][-]12.31.2007 at 08:15AM PST, ID: 20555755

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.01.2008 at 10:11AM PST, ID: 20560917

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.09.2008 at 12:32PM PDT, ID: 21745918

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628