Hey Guys, I cant figure out how to pass a variable to the grid via a url string
as in the example below.
<a href="##" onclick="ColdFusion.Grid.refresh('UserGrid',false)">Click me</a>
Its trivial with a form using Coldfusion.Grid.refresh and passing the form
variable but Im unsure how to do this with a url variable.
Thanks for any help you can offer. I hope the example below displays my intent.
<cflayout type="tab">
<cflayoutarea title="myLayout">
<a href="##" onclick="ColdFusion.Grid.refresh('UserGrid',false)">Click me</a>
<cfform id="GridForm">
<cfgrid name="UserGrid"
bind="cfc:cfc.users.getusers({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection},{uid})">
<cfgridcolumn name="UID" display="false">
<cfgridcolumn name="FNAME" header="First Name">
<cfgridcolumn name="LNAME" header="Last Name">
</cfgrid>
</cfform>
</cflayoutarea>
</cflayout>
CFC:
<cffunction name="getusers" access="remote">
<cfargument name="page" required="yes">
<cfargument name="pageSize" required="yes">
<cfargument name="gridsortcolumn" required="yes">
<cfargument name="gridsortdirection" required="yes">
<cfargument name="uid" required="yes">
<cfquery name=qGetUsers datasource="mydsn">
SELECT * FROM tbl_Names WHERE UID = '#uid#'
</cfquery>
<cfreturn queryconvertforgrid(getusers,page,pagesize)/>
</cffunction>
CSmith
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318039
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4