getting the parameters in url using cfgrid to cfc....
please help!!!
passing parameters to cfc using the cfgrid bind...
im using the cfc bind if u hard coded the query in the cfc its works but if u need to pass a parameters in cfc bind its not working...
for example...
my url with parameter is http://localhost/index.cfm?empid=123&start_date=2009/05/01
<cfform>
<cfajaxproxy bind="javascript:todetail({maingrid.id@change},{maingrid.firstname@none},{maing rid.lastname@none})" />
<cfgrid format="html"
name="maingrid"
bind="cfc:#request.cfcpath#users.getGridas({cfgridpage},{cfgridpagesize},{cfgri dsortcolumn},{cfgridsortdirection})"
preservepageonsort="true"
appendkey="no"
selectonload="false"
width="750"
style="clear:both;" colheaderalign="center"
>
<cfgridcolumn name="id" display="no" />
<cfgridcolumn name="datatime" header="DATE" width="100"/>
</cfgrid>
</cfform>
my query in cfc file:
select * from hrd_emp
WHERE 0=0
<cfif arguments.id NEQ "">AND (id='#arguments.id#')</cfif>
<cfif arguments.whereClause NEQ "">AND (#preserveSingleQuotes(arguments.whereClause)#)</cfif>
AND (EmpNo = '#######') =====> i need to put the empid=123 from the url http://localhost/index.cfm?empid=123&start_date=2009/05/01
PLEASE HELP!!!
