Portlet Factory, Version 6.1.2
About getting a WebAppAccess object for a model outside the scope of the current model
In a method, use the following code to instantiate a WebAppAccess object for the specified linked model. You would want to do this if you wanted to get or set the variable values in that model or if you wanted to access any other information about the linked model.
WebAppAccess remoteWebAppAccess = webAppAccess.getModelInstance("myModels/ModelName", "Region!Southwest", false);where:
- myModels/ModelName is the path (relative from WEB-INF/models) and name of the model for which you want the webAppAccess.
- Region!Southwest is the profile set and profile name to apply to the model. For the model defaults, use "" (an empty String).
- false determines whether or not model instance is created as a singleton object.
Parent topic: Utilizing the WebAppAccess object
Library | Support |