Generate Object API code for Windows Mobile devices.
Prerequisites
- Connect to both the sampledb database and
Unwired Server. Code generation fails if the server-side
(run-time) enterprise information system (EIS) data sources referenced by the
MBOs in the project are not running and available to connect to when you
generate object API code.
- Switch to the Advanced developer profile to see advanced options
in Sybase Unwired WorkSpace.
Task- Start Sybase Unwired WorkSpace, using the same
workspace location you used when you created the SUP101 project in the MBO
tutorial.
- In Sybase Unwired WorkSpace, open the SUP101 mobile application project.
In WorkSpace Navigator, right-click the
SUP101 folder and select Open in Diagram Editor.
- In WorkSpace Navigator, expand SUP101. Under Generated Code, add a folder named
Windows.
- Right-click anywhere in the SUP101 - Mobile Application Diagram
and select Generate Code.
- On the Code generation configuration screen, click Next.
- In the Select Mobile Business Objects winow, select the Customer MBO, then
click Next.
Ignore any warning about unresolved mobile business object
dependencies.
- Enter the information for these configuration options:
Option |
Description |
Language |
Select C#. |
Platform |
Select .NET
Framework for Windows.
|
Unwired Server |
Select My Unwired Server. |
Server domain |
Select default. |
Page size |
Select <blank>
(replacing 1024). |
Namespace |
Enter SUP101Windows.
|
Project
path |
Enter
\SUP101\Generated
Code\Windows. |
- Click Finish.
If you see
a
success notification
dialog,
click OK.
In the Generated Code directory, you see
Windows\src\SUP101Windows.