From Documentation

Jump to: navigation, search

In zscript, you can access implicit object like they are declared global variable.

		self.title="given by zscript";

the result shows window's title becomes given by zscript

Not every implicit object has its own mapping java object. But there is always a workaround. If you want to access attribute in desktopScope, the following two statements are equivalent, assuming comp is a component.

comp.getAttribute("some", comp.DESKTOP_SCOPE);
comp.getDesktop().getAttribute("some"); has api such as getExecution, getPage, getSession, getWebApp. And has getSpaceOwner, getDesktop. And Execution has getArg. And has getEach

For example, you can get the implicit object execution from any component


Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.