Generate object API code containing mobile business object (MBO) references, which allows you to use APIs to develop device applications for various mobile devices.
Before generating device client code, develop the MBOs that will be referenced in the device applications you are developing.
From | Action |
---|---|
The Mobile Application Diagram | Right-click within the Mobile Application Diagram and select Generate Code. |
WorkSpace Navigator | Right-click the Mobile Application project folder that contains the mobile objects for which you are generating API code, and select Generate Code. |
Option | Description |
---|---|
Language | Choose the language used for developing the client applications:
|
Platform | Select the platform ( target device) from the drop-down list for which the device client code is intended. The platform is dependent on the language selected.
|
Unwired Server | Specify a default Unwired Server connection profile to which the generated code connects at runtime. |
Server domain | Choose the domain to which the generated code will connect. If you specified an Unwired Server to which you previously connected successfully, the first domain in the list is chosen by default. You can enter a different domain manually. |
Page size | Optionally, select the page size for the generated client code. If the page size is not set, the default page size is 4k at runtime. The page size should be larger than the sum of all the attributes' max-length and must be valid for the database. Note: The page size option is not enabled for message-based applications.
|
Package, Namespace, or Name Prefix |
|
Destination | Specify the destination of the generated device client files. Enter (or Browse) to either a Project path (Mobile Application project) location or File system path location. Select Clean up destination before code generation to clean up the destination folder before generating the device client files. Note: If you select Java as the language, enter a project path, specify a mobile application project folder, and select Generated Code as the destination. JAR files are automatically added to the destination for the platform that supports compiling of the generated client code.
|
Replication-based | Select to use replication-based synchronization. Note: This option is not available for mobile applications that will run on iPhone.
|
Message-based | Select to use message-based synchronization. Note: Use message based synchronization for iPhone, Windows Mobile, and Symbian mobile applications. This option is not available for Java applications.
|
Backward compatible | Select if you want the generated code to be compatible with the SUP 1.2 release. |