[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

Bind Error in CFSELECT (from CFGRID)

Asked by anusha in ColdFusion Application Server

Tags: bind, cfgrid, cfselect, error

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
[+][-]12/31/07 08:15 AM, ID: 20555755Expert Comment

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/01/08 10:11 AM, ID: 20560917Author Comment

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/09/08 12:32 PM, ID: 21745918Expert Comment

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81 / EE_QW_2_20070628