1 Reply Latest reply on Oct 21, 2014 11:25 AM by WolfShade

    Accessing CFC in a different folder - no mappings

    WolfShade Level 4

      Hello, everyone,

       

      I've got a project that I'm working on that has (basically) the following folder structure:

      /       (webroot)

      -main

      ----qry

      ----disp

      -org

      ----qry

      ----disp

       

      I've got a form in /org/disp that has a CFSELECT that I need to bind to a CFC in /main/qry.  I've tried "cfc:main.qry.cfcName.functionName(param)", and "cfc:/.main.qry.cfcName.functionName(param)", and I keep getting the "component cannot be found" error message.  How can I get this to work?

       

      V/r,

       

      ^_^

        • 1. Re: Accessing CFC in a different folder - no mappings
          WolfShade Level 4

          Okay.. no one, here, told me that application.cfc is loading a variable for the web root, so using that did find the component.

           

          HOWEVER, I am having another issue, now.

           

          When the page loads, the select (which is supposed to populate based upon the value of another select) isn't populating, and F12 shows that there is an issue with a throw being uncaught.  The throw is NOT part of the try/catch in cfajax.js, apparently.  Is there a fix for this?

           

          V/r,

           

          ^_^