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

  1. #1

    Default External Components

    Hi, I have an application that uses CFC's extensively. I have one function
    that puts user info into a database and then redirects them to a page. Before
    redirecting them, though, I have another CFC that scores my database that I
    want to run. Currently, the system is setup for that scoring CFC to run daily
    as a scheduled task. I also want to be able to have it run when new user info
    comes in. Do I use CFINVOKE for that, before I redirect, or some other
    mechanism? Thanks.

    stockwet Guest

  2. Similar Questions and Discussions

    1. v2 Components and external flv's - bit of help please...
      Hello, When loading external flv's into the MediaPlayback Component provided with Flash MX 2004 Pro, how would you tell the component what the...
    2. ASP.NET & COMPONENTS
      I am developing a component in VS.NET that is going to hosted on an APSX page. Is there a way I can get a reference to the page from the component....
    3. external cast members of an external cast
      I am trying to import a png image (with transparency) externally to an external cast. The problem is that the image doesn't appear when I play the...
    4. ui components
      Hi, How can i put any ui component on the stage through actionscripting? For a _mc you would use attachMovie or createEmptyMovieClip. How do I...
    5. how to add external components?
      The Components panel All components are stored in the Components panel. When you install the Flash program and launch it for the first time, the...
  3. #2

    Default Re: External Components

    If I understood correctly, you are trying to execute, from one component, a
    function in another component. if so, you can do a regular <cfinvoke
    component='SCORE_CFC' method='SCORE_FUNCTION'> from the function that inserts
    the user info. or you can also extend the component. and just call the
    function as if it was inside the same component <cfcomponent
    extends='SCORE_CFC'> this is the CFC with the functions to insert the user info
    <cffunction name='INSERT_USER_INFO'> your code <cfinvoke
    method='SCORE_FUNCTION'></cfinvoke> </cffunction> </cfcomponent>

    jorgeloyo Guest

  4. #3

    Default Re: External Components

    Thanks.

    I tried the first approach and it seems to work. I think I had tried that in the past and it didn't work - probably related to some mistake I made.
    stockwet 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