You need to sign in to do that
Don't have an account?
MoDiggity
Variable is not visible?
How come the variable is not visible? It seems like the { set; } doesn't do anything without the presence of get; in that block. Here's the code.
global with sharing class AppTrackerController { public boolean accessError { set; } global AppTrackerController(ApexPages.StandardController stdController) { accessError = false; } }
When you write {!accessError} the page tries to pull the data and since you don't have the get method it is not able to do so and throwing the error.
You can use below code, It will not give you compile error,
I tried your code in vairous mode any find the this soluiton.
IF it helps you than please mark it as a solution and ENJOY APEX
Simply changing:
to
Fixed the problem. I don't know that I fully understand why, but it works now. Thanks for your help guys!
Furthermore, if you wanted to encapsulate the variable and only allow accessError to be set in your class, then you could do something like: