DB Field name="application" and Application scope variables

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default DB Field name="application" and Application scope variables

    Hi,

    There is DB Field application which overwrited ,as I see , Application
    scope variable
    Are there way to solve this problem without using alias for DB Field ?
    <CFIF
    IsDefined("Application.MyVar")><CFOUTPUT>#Applicat ion.MyVar#<CFOUTPUT></CFOU
    TPUT>
    <!--- Application.MyVar IsDefined=YES --->
    <CFLOOP QUERY=...............>

    <CFIF
    IsDefined("Application.MyVar")><CFOUTPUT>#Applicat ion.MyVar#<CFOUTPUT></CFOU
    TPUT>
    <!--- Application.MyVar IsDefined=NO --->
    ......

    Thanks
    Vic



    VicTci Guest

  2. Similar Questions and Discussions

    1. Application Scope variables ?
      I am migrating to PHP from ASP where there are the Application Scope variables which are accessible from any page on a website and which are used, in...
    2. #40453 [NEW]: Application Error in New COM ("word.application")
      From: mraji_1 at yahoo dot com Operating system: Win 2000 PHP version: 4.4.4 PHP Bug Type: COM related Bug description: ...
    3. Application.xml -> Process -> Scope ; "app" disturbs FMSconsole
      Hi, I'm not sure if this is a bug related to version 2.0.1 but if we enable "app" scope in Application.xml (Application.xml -> Process -> Scope)...
    4. Illustrator "Application Launch Failure" after GoLive update.
      I installed the GoLive CS 7.0.1 update today, and Illustrator CS no longer works. When attempting to launch Illustrator, I get a panel that says: ...
    5. Networking Problem (winXP-win98se) "Faulting Application spoolsv.exe"
      I am trying to network 2 pc's, one winXP and one win98se. I have successfully installed networking cards, and connected them using cross-over...
  3. #2

    Default Re: DB Field name="application" and Application scopevariables

    It's hard to understand what you are asking. Your code fragments appear to be
    incomplete. For example,
    <CFIF
    IsDefined("Application.MyVar")><CFOUTPUT>#Applicat ion.MyVar#<CFOUTPUT></CFOUTPUT
    >contains two <CFOUTPUT> and one </CFOUTPUT>.
    jdeline Guest

  4. #3

    Default Re: DB Field name="application" and Application scope variables

    Sorry, :-(

    I think that DBfield with name "Application" overwrite Application scope...
    after execute query
    What I can do ? Only add alias for DBfield "Application"

    <CFIF
    IsDefined("Application.MyVar")><CFOUTPUT>#Applicat ion.MyVar#</CFOUTPUT>
    <!---Output : IsDefined=YES and
    Application.MyVar =blabla --->
    <CFLOOP QUERY=...............>

    <CFIF
    IsDefined("Application.MyVar")><CFOUTPUT>#Applicat ion.MyVar#</CFOUTPUT>
    <!---Output : Application.MyVar IsDefined=NO --->

    Thanks
    Vic


    VicTci 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