Building Mobile Enterprise Applications : Using webMethods Mobile Designer : Setting Properties and Parameters for a Mobile Application Project : About Properties and Parameters
About Properties and Parameters
Properties and parameters are project settings used when building your project or at run time.
*Properties are build-time settings that your project’s build script can access when building your project. At build time, the build process can access property settings to determine information, for example, the device for which your application is being built. As a result, you can set properties to manipulate how your application is built for specific platforms and/or specific target devices, including and/or excluding features for the devices your mobile application supports.
Note:  
Your application code cannot reference property settings at run time. Use parameters for settings that are available to your application’s run-time code.
*Parameters are run-time attributes that you can use in your application code. For example, at run time your application can access parameters to retrieve information abouts the resources included in the application to perform such tasks as loading resources. Another example is that your application code can access information about the device on which the application is running to branch the logic based on the needs of that specific device. For more information, see Using Parameters in Your Application Code.
When Mobile Designer builds a project, it runs the project’s resource handler before it compiles your application. The resource handler creates the com.softwareag.mobile.runtime.Parameters class that includes all the parameters.
The Parameters.java includes:
*Parameters that Mobile Designer defines and uses.
*Application-specific parameters related to the resources in your project.
Copyright © 2007-2017 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback