Invoke CFC with Button
I have a form I built wherein I am binding several fields to one cfinput and hitting a cfc I built that pulls data from a web service. I am struggling in figuring out how to get the fields to fill in with the binding value once I click a button. Here's the scenario...the end user fills in the field, clicks a button and several other fields get filled in from the cfc that hits the web service. I have tried the following to no avail...
<cfform id="myForm" format="html">
<cfinput type="text" name="reporttype" id="reporttype" value="BASIC">
<cfinput type="text" name="vin" id="vin" value="xxxxxxxxxxxxxxxxx"><br />
<cfinput type="text" name="modelYear" value="" size="30" bind="cfc:cfc.vinlookup.getYearvin(argVIN={vin},argReporttype={reporttype})" /><br />
<cfinput type="button" value="getvin" name="getvin" id="getvin">
</cfform>
I have even tried playing with the cfajaxproxy tag and the @4642326 event. I feel like I am close. If someone could educate me/point me in the right direction, I would appreciate it.
Thanks,
~Clay
