DW and CF Components

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

  1. #1

    Default DW and CF Components

    I have written several components and they (I think) look exactly like the one
    in my CFMX7 Web App Const. Kit book. However, when I view them listed under
    the components tab in DWMX 2004 Application panel I see the Component but when
    it is expanded I see a red circle with a line through it followed by the text
    "There was a problem with this cfc."

    What is wrong with my code that I can't see my methods and use DW's drag and
    drop abilities to add <invoke> tags to my CF pages?

    Example of one of my components:

    <cfcomponent displayname="Assistant Manager Subscriber News" hint="Queries
    subscribersNews table for current news articles">
    <!--- Create Subscriber News Function --->
    <cffunction name="getNews" access="public" returntype="query"
    displayname="Get News Method" hint="Contains the query to get subscriber news">
    <!--- Set variable --->
    <cfset var subNews="">
    <!--- Query Database --->
    <cfquery name="subNews" datasource="assistancemanag288">
    SELECT *
    FROM subscribersNews
    WHERE killdate >= #now()#
    ORDER BY newsID ASC
    </cfquery>
    <!--- Return Results --->
    <cfreturn subNews>
    </cffunction>
    </cfcomponent>

    Thank you!

    Jason

    jpesolutions Guest

  2. Similar Questions and Discussions

    1. FMS UI Components?
      Do you think if FMS support communication UI Components (like SetBandwidth)? May I have the url and I can download themfor flash cs3. Thanks ...
    2. Use FMS without components
      Hello all, due to the fact that I have not been able to publish in "flash 8" using the default FMS components (I get errors and can only publish for...
    3. ASP & Components
      Hi guys, I'm having a problem. I'd like to work with components and ASP. Take a look at http://www.tech-nomade.com/lab/ formulaire.swf so that's...
    4. Any components of .....
      Has anyone written a component like "Mail Merge" or "Poll Management" in ..NET Can anyone share or redirect me to any URL... Regards,
    5. Components Components Components
      Again with the damn component questions.... I am trying to use the accordion box (MX 2004), and would like my text to appear within the different...
  3. #2

    Default Re: DW and CF Components

    There is probably a problem with your cfquery, but without knowing your db set
    up it is difficult to help.

    Open up your cfc in Dreamweaver and hit F12 to open it up in the browser. You
    will get a standard ColdFusion error message.

    This should help you fix it!

    Stressed_Simon 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