Justin B
04/08/2024, 5:28 PMrickmason
04/09/2024, 8:05 AMharryk
04/09/2024, 12:39 PMrickmason
04/10/2024, 4:39 AMmauzer
04/10/2024, 10:37 AMmauzer
04/10/2024, 10:39 AMDave Merrill
04/10/2024, 3:05 PMgsr
04/12/2024, 12:22 PMgsr
04/14/2024, 2:20 AMgsr
04/14/2024, 2:21 AMMike Greider
04/15/2024, 2:01 PMsatauros
04/16/2024, 11:49 AMwebsolete
04/16/2024, 3:29 PMgsr
04/16/2024, 5:24 PMDave Merrill
04/17/2024, 12:24 AMBill Nourse
04/17/2024, 2:49 PMBobby Palko
04/17/2024, 3:44 PMstatic
for a class variable. I have instance methods that attempt to reference this static variable, but in doing so I'm getting an error:
Variable CANCEL_ERROR_TEXT is undefined in static context.
I've tried defining a static block and just declaring it as static.CANCEL_ERROR_TEXT
, referencing it as static.CANCEL_ERROR_TEXT
and Customer::CANCEL_ERROR_TEXT
, and just about everything in the Adobe docs. The only thing that does the trick is to place the variable in the init method, which doesn't seem right to me. Am I missing something blatantly obvious here?mauzer
04/17/2024, 4:35 PMgsr
04/18/2024, 1:45 PMgsr
04/18/2024, 1:46 PMgsr
04/18/2024, 1:46 PMSebastiaan Naafs - van Dijk
04/19/2024, 11:49 AMgsr
04/20/2024, 11:43 AMGareth
04/21/2024, 8:25 AMSung Ham
04/23/2024, 7:45 PMredtopia
04/24/2024, 7:06 PMTEMann
04/24/2024, 8:25 PMSung Ham
04/25/2024, 5:18 AMMichael Casey
04/25/2024, 7:40 AMbkbk
04/25/2024, 8:49 AMsearchimplicitscopes=FALSE
. If you fail to prefix a variable name with an appropriate scope identifier, you will get an error.