Skip to main content
June 4, 2010
Answered

Application variable erroring in function

  • June 4, 2010
  • 1 reply
  • 352 views

All,

Have a hopefully simple question..why am I getting an  error when I try to reference an Application variable within a method?  Is there a trick to get the method to recognize the application variable?

Exceptions]

09:11:59.059 - Expression Exception - in  D:\webroot\model.cfc :  line 74

         Element DBADMIN is undefined in APPLICATION.
        


Scope Variables

Application Variables:
DBADMIN=databasename
    This topic has been closed for replies.
    Correct answer Adam Cameron.

    This suggests to me that at the time the exception was raised, application.dbadmin didn't exist, but at some stage between then and when the debugging was rendered, it was created.

    Where's application.dbadmin created?

    --

    Adam

    1 reply

    Adam Cameron.Correct answer
    Inspiring
    June 4, 2010

    This suggests to me that at the time the exception was raised, application.dbadmin didn't exist, but at some stage between then and when the debugging was rendered, it was created.

    Where's application.dbadmin created?

    --

    Adam