|visibleWhen and core expressions [message #1409997]
||Tue, 19 August 2014 14:20
| Martin odloucký
Registered: July 2010
Hi, I have a problem making a command visible only when certain part is active. I have taken this approach|
however, it seems that the core expression only gets evaluated at startup. When I change the context variable by calling context.set or even context.modify, the state of the command does not get updated. The almighty Lars Vogel, taking the same approach in his tutorial
does not seem to face such an issue. How come?
Are core expressions supposed to get re-evaluted when the DI context changes? If not, how can I force re-evaluation? I know there is a method IEvaluationService.requestEvaluation but I couldn't obtain instance of the IEvaluationService through dependency injection. Should I obtain it by some 3.x way? Does not the e4 have some new and more fancy ways of handling the evaluation of core expressions?
[Updated on: Tue, 19 August 2014 14:22]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01568 seconds