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

  1. #1

    Default cffile write

    Hi all,

    I am trying to output to a txt file using cffile write.

    Problem is I output a query with a header and run a subquery inside of each
    header output to output a series of line items. Ex:

    cfoutput query="query1"
    #a#, #b#
    cfquery name="query2" datasource="abc"
    select * from a
    /cfquery
    cfloop query="query2"
    #c#,#d#
    /cfloop
    /cfoutput

    It cant find any of the fields in the second query...any ideas?

    Cwinters Guest

  2. Similar Questions and Discussions

    1. cffile write no longer working
      I am using cffile write on cfmx7 to create lots of html static files. Since today it is not working anymore. I tried to restart the coldfusion...
    2. Using CFFILE to write ColdFusion files
      I want to use CFFILE to write out ColdFusion files instead of just text files. I can't find this in the documentation anywhere. I can get it to...
    3. cffile action=write ... does nothing
      Hi! I am trying to write to a file and nothing happend... Not even an error message! Do I have to setup someting special on the server? Here is my...
    4. CFFILE on PC and Mac
      So I've been looking at the suggested solution mentioned by Fug. It looks like it might work, but it is 400+ lines of code and will take a bit of...
    5. write to database without giving write permission to IIS
      Hi there, I have some ASP code that writes to access database. For security reason I do not want IUSER to give write permission to database...
  3. #2

    Default Re: cffile write

    Have you tried scoping the variables?

    query1.a, query1.b

    query2.c, query2.d

    I'm assuming your putting the code into <cfsavecontent>
    shp.jc Guest

  4. #3

    Default Re: cffile write

    I did scope the variables...claims that the variable query2.d is undefined still.


    Cwinters 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