1 Reply Latest reply on Dec 4, 2010 3:59 PM by Dave Watts

    cfgrid bind question

    funandlearning333 Level 1

      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},{cfgridsortc olumn},{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">


      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?



        • 1. Re: cfgrid bind question
          Dave Watts Adobe Community Professional

          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">




          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




          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: