Hello -
I am trying to bind the ID of a cfgrid to a textbox in a form I have created.
The section of the form I am trying to bind the ID to is as follows:
<cfform id="consultationForm"
action="#cgi.SCRIPT_NAME#"
method="post"
enctype="multipart/form-data">
<div id="consultations">
<input type="hidden" name="submitted" value="1" />
<fieldset>
<legend>Consultations</legend>
<label for="client name">Client Username
<cfinput name="clientID"
type="text"
maxlength="8"
onClick="ColdFusion.Window.show('userWin')"
bind="{clientLookup.id}"
tabindex="1"
value="#form.clientID#"/>
</label>
</fieldset>
</div>
</cfform>
<cfwindow name="userWin"
title="Client Lookup"
initshow="false"
modal="true"
center="true"
height="330"
width="330">
<cfoutput>
<cfform name="tableform">
<cfinput type="text" name="filter">
<cfgrid format="html"
name="clientLookup"
pagesize="10"
selectmode="single"
autowidth="true"
bind="cfc:client.getClients({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection},
{fil...@keyup})">
<cfgridcolumn name="id" display="No"/>
<cfgridcolumn name="firstname" header="FIRST NAME">
<cfgridcolumn name="lastname" header="LAST NAME">
<cfgridcolumn name="organization" header="ORGANIZATION">
</cfgrid>
</cfform>
</cfoutput>
</cfwindow>
Once a user clicks in the textbox "clientID", a cfwindow opens and displays a
cfgrid below another textbox, "filter." The user can begin typing a client
name into filter which is bound to the cfgrid. The grid filters the client
names. I would like the user to be able to click on the desired username in
the grid and have it populate the textbox clientID. I have tried different
ways of binding "clientID" to the cfgrid "clientLookup" to no avail.
Can anyone share his or her thoughts?
Thanks,
Adam
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:4723
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15