Copy link to clipboard
Copied
Hi All-
I am trying to use cfgrid, as below
<cfgrid name="usersgrid" pagesize="5" format="html" width="100%" height="200"
bind="cfc:SysAdmin.cfc.lookupUsers.getAllUsers({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection},{filtercolumn},{filter})">.
I also have a application.cfm file which is checking for a URL variable as below:
<cfif URL.login EQ 0>
<cflocation url="Login.cfm">
</cfif>
The problem is the call to remote cfc is checking for this URL variable. How can I pass a URL variable in the bind attribute?
Thanks
Copy link to clipboard
Copied
Why are you requiring a login variable in every URL? It seems to me that the better solution would be to change that. That said, you can simply exclude some pages from checking for this variable, by specifying them in the logic you have in Application.cfm:
<cfif URL.login eq 0 and cgi.script_name does not contain ".cfc">
...
</cfif>
Alternatively, if your CFCs are in a separate directory, you could put a separate Application.cfm file in that directory to exclude that behavior.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/
Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.
Read this before you post:
http://forums.adobe.com/thread/607238