Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default CFCs & Dot Notation

    Here is what I have. A CFC with filename amCurPatientCount.cfc which is
    located in the "components" folder under the webroot. I have been able to
    successfully call this component from the index.cfm page located just under the
    root using the following tag:

    <cfinvoke component="components.amCurPatientCount" method="countPatients"
    returnvariable="curPatients">

    How would I change this so that I could use it on a page that is located in a
    folder titled "patients" that is under the root folder? I thought that I could
    just use the same code as above but got an error message that it could not find
    the component amCurPatientCount.cfc in the components folder. I don't know how
    to do a "../" to go up one directory in dot notation.

    Thanks,

    Jason

    jpesolutions Guest

  2. Similar Questions and Discussions

    1. E4X dot notation
      I just got the Adobe Flex 3 "Training from the Source". I am trying to get the E4X dot notation working and the book has an excellent example for...
    2. Using Literal Object notation instead of XML
      I am writing an application for pocket pc that heavily exchanges data with server. I tried using XML, but XML object crashes Flash too often. My...
    3. component dot notation
      I have a component in a subdirectory of my website, lets say widget.cfc, the full path on my linux (SuSE 8.2) box is...
    4. php and number notation
      Hi, I have written my first PHP script, albeit one thats only about 10 lines long. It is one of a number of small procedures that I'd written...
    5. ActionScipt notation.
      Hi, From old habbit I have always used to write function like this: function(){ //some code } But i see in tutorials and other places the...
  3. #2

    Default Re: CFCs & Dot Notation

    that should work. double check your file/dir names.

    javaRB.cfc in /blackstone dir can be called via

    <cfinvoke component="blackstone.javaRB" method="isOK" returnvariable="t">

    from a cf page in dir /testCF/test/


    it also might be simpler to move your CFC dir off the webroot and create a
    mapping for it in cfadmin.


    PaulH Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139