Thank you all kindly for your suggestions.

I followed instructions on the Blog mentioned.

<cfinput type="button" name="Download" value="Download Registrants to MS Excel" 
onClick="doDownload();">

called this function:
function doDownload() {
        var mygrid = ColdFusion.Grid.getGridObject('reg_list');
        var mydata = mygrid.getDataSource();
        var params = mydata.lastOptions.params;
        var dir = params.dir;
        var searchString = document.reg_form.searchString.value;
        var campus_code = document.reg_form.campus_select.value;
        var start_dt = document.reg_form.start_dt.value;
        var end_dt = document.reg_form.end_dt.value;
        var year = '<cfoutput>#contest_year#</cfoutput>';
        
document.location.href='download.cfm?year='+year+'&searchString='+searchString+'&campus_code='+campus_code+'&start_dt='+start_dt+'&end_dt='+end_dt;
        }

Which invoked the cfc that bound to my grid.

Works like a charm! Many many thanks,

Matts


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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-talk/message.cfm/messageid:328581
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to