Limitations of CFParam

Ask a Question related to Macromedia ColdFusion, Design and Development.

  1. #1

    Default Limitations of CFParam

    I'm curious if someone can point me to any documentation regarding the limits
    of the <cfparam> tag. More specifically, can it be used to set a default value
    of a variable in the query scope? For example, could 'queryName.column1' be
    given a value if the column is not actually defined in the query? From the
    tests I've run, it seems like it cannot in fact write to vars in this scope,
    but I want to make sure. The MM docs don't appear to touch this topic at all.
    Thanks.

    sillyworm Guest

  2. Similar Questions and Discussions

    1. CFPARAM scope
      Hello, When I have <cfparam name="test" default="Variables value"> And I not specify the scope, do coldfusion test parameter's existence in...
    2. CFPARAM default value always processed?
      I'm not sure I understand this... recently, I found out that the cfparam default value is always processed... shouldn't this tag only process the...
    3. CFPARAM Type Changes in CFMX7
      I just finished installing a local copy of CFMX7 and the DWMX2004 extensions. I discovered that the type attributes of the CFPARAM tag have changed....
    4. CFPARAM Query syntax
      Can anyone tell me the proper syntax to enter a query into a cfparam variable?? I would like to put the result of the query Recordset3 into the...
    5. Using cfset and cfparam variables and NOT being able topass them in URL
      I was wondering, how would I be able to use cfset or cfparam to set a variable which can't be passed via any other method? For example, I have this...
  3. #2

    Default Re: Limitations of CFParam

    For example, could 'queryName.column1' be
    given a value if the column is not actually defined in the query?

    cfparam is not quite that smart. Actually, it has more to with the fact that
    query objects cannot be written to in the way you are suggesting.

    Your db should be able to help in this respect. You can either give a column
    a default value when you create the table or, as in oracle, use the NVL()
    function to give a column a default value should it be null in the returned
    result set.

    HTH



    "sillyworm" <webforumsuser@macromedia.com> wrote in message
    news:d08rrc$fce$1@forums.macromedia.com...
    > I'm curious if someone can point me to any documentation regarding the
    > limits
    > of the <cfparam> tag. More specifically, can it be used to set a default
    > value
    > of a variable in the query scope? For example, could 'queryName.column1'
    > be
    > given a value if the column is not actually defined in the query? From the
    > tests I've run, it seems like it cannot in fact write to vars in this
    > scope,
    > but I want to make sure. The MM docs don't appear to touch this topic at
    > all.
    > Thanks.
    >

    gumshoe 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