• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

cfgrid bind question

Guest
Dec 03, 2010 Dec 03, 2010

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

TOPICS
Advanced techniques

Views

1.6K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 04, 2010 Dec 04, 2010

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation