Ask a Question related to Coldfusion - Getting Started, Design and Development.

  1. #1

    Default Documentation

    :moon;

    I inheirited a mess of CFM pages. I have been asked to document then, what
    databases/tables they access and what other webpages they use. Other than the
    old OPEN/READ technique, any better ideas. Please someone tell me there is a
    useful software or feature. I have CF5.0 Studio.

    Kat

    lunatasha Guest

  2. Similar Questions and Discussions

    1. .MXI documentation
      Can someone point me to the documentation on how to create the .mxi file. The acceptable structures within the .mxi, etc. I can't find any direct...
    2. printed or PDF documentation?
      Is is possible to get a printed (or PDF) version of the Flex Builder 3 online help, and the language reference in particular?
    3. better IB/PB documentation?
      Jamal Bernhard wrote: Try looking in the reference documentation for the class itself. For example, to find out what the "One shot" attribute...
    4. documentation...
      Hello, I am now working on a complex web application. The problem is: my boss wants me to document the application, but I don't know how to...
    5. I need documentation to AIX..
      .... PW piter@pro.onet.pl
  3. #2

    Default Re: Documentation

    You may have to write a couple of CF seripts to help yourself out. One script
    would read each .CFM file and look for "<CFQUERY". Then scrape the table names
    from the SELECT, INSERT INTO, UPDATE and DELETE. Of course, there are
    complications if the table names are dynamic. :-(

    The second script could read each .CFM file and look for <FORM...> and
    <CFLOCATION ...>. Make a list of each filename you find in these tags.



    jdeline Guest

  4. #3

    Default Re: Documentation

    I do not think I have ever done anything like that. Can you push me in the right CODE direction please.
    lunatasha Guest

  5. #4

    Default Re: Documentation

    1. Do a <CFDIRECTORY>, filtering on .CFM file extention
    ([url]http://livedocs.macromedia.com/coldfusion/5.0/CFML_Reference/Tags14.htm#1097918[/url]
    )

    2. Loop through all the files:
    a) read a file into a local variable "filename"
    b) doing a <CFSET pointer = FindNoCase("<SELECT", filename)>
    c) if found, do a FindNoCase("FROM", filename, pointer)
    d) you are now positioned next to the table name
    e) repeat b, c and d until no more SELECTs are found
    f) repeat b, c and d for UPDATE, INSERT INTO and DELETE.



    jdeline 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