SBennett,
I tried adding the form name on cfselect and I get the same error. Any other ideas?
Thanks
Anusha
Main Topics
Browse All TopicsAll,
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.ge
<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_I
<option value="0" > --Select-- </option>
<cfoutput query="getRoles">
<option value="#rol_role_id#">#rol
</cfoutput>
</cfselect>
If I check the bind value it shows correctly, but the item is not automatically selected from the drop down.
thanks
This question is in progress.
Our experts are working on an answer right now.
Sign up for immediate access to the solution once it becomes available.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I know this question is a bit old, however, I thought that I would share my solution to this problem. From what I understand, using the bind attribute of a cfselect tag reloads the options with a 2D array. From the Adobe website (http://livedocs.adobe.com
Because you are using a cfgrid, the value being passed (linkGrid.ROL_ROLE_ID) to the cfselect is not a 2D array, so you are getting an error.
What I did to get around this was added additional hidden cfinput tag that uses the bind attribute to call a javascript function which sets the correct select option:
<script>
setRoleID = function(myID){
var mySelect = document.getElementById('r
for(var i=0;i < mySelect.length;i++){
if(mySelect.options[i].val
mySelect.selectedIndex=i;
return;
}
}
}
</script>
<cfform name="MyForm">
<cfgrid name="linkGrid" format="html" pageSize=5 sort=true selectcolor="##CCCCCC"
bind="cfc:InternalUsers.ge
<cfgridcolumn width="160" name="rol_role_name" header="Role">
<cfgridcolumn name="ROL_ROLE_ID" display="no">
</cfgrid>
<cfinput type="hidden" name="hiddenRoleID" bind="javascript:setRoleID
<cfselect name="role_id" size="1">
<option value="0" > --Select-- </option>
<cfoutput query="getRoles">
<option value="#rol_role_id#">#rol
</cfoutput>
</cfselect>
</cfform>
Business Accounts
Answer for Membership
by: SBennettPosted on 2007-12-31 at 08:15:03ID: 20555755
Try adding your form name to the bind expression like this:
tInternalU sersList({ cfgridpage },{cfgridp agesize},{ cfgridsort column},{c fgridsortd irection}) ">
_ROLE_ID}" > _role_name #</option>
<cfform name="MyForm">
<cfgrid name="linkGrid" format="html" pageSize=5 sort=true selectcolor="##CCCCCC"
bind="cfc:InternalUsers.ge
<cfgridcolumn width="160" name="rol_role_name" header="Role">
<cfgridcolumn name="ROL_ROLE_ID" display="no">
</cfgrid>
<cfselect name="role_id" size="1" bind="{Myform:linkGrid.ROL
<option value="0" > --Select-- </option>
<cfoutput query="getRoles">
<option value="#rol_role_id#">#rol
</cfoutput>
</cfselect>
</cfform>