Copy Unwired Platform BlackBerry runtime files and generated object
API code to the SUP101Sample project. You had created the code previously in the Generate Code
wizard.
In Windows Explorer, browse to <UnwiredPlatform_InstallDir>\UnwiredPlatform\MobileSDK\ObjectAPI\BB.
Copy these files: CommonClientLib.cod,
MessagingClientLib.cod,
MocaClientLib.cod, sup_client2.cod, and
UltraLiteJ12.cod.
Paste the copied COD files into the BlackBerry Java Plug-in simulator
directory, located in <BlackBerry_Eclipse_InstallDir>\plugins\net.rim.ejde.componentpack<version>\components\simulator.
In Windows Explorer, go to the workspace folder you set for Sybase
Unwired WorkSpace, and copy the generated code files.
For example, go to C:\Documents and
Settings\user1\SUP-wksp\SUP101\Generated Code\src and copy the
SUP101 folder.
In the BlackBerry Application Development workspace, go to the
SUP101Sample project and paste the folder into the
src directory.
For example, go to C:\Documents and
Settings\user1\BB-wksp\SUP101Sample\src and paste the
SUP101 folder.
In Package Explorer, you see the SUP101 and SUP101.intrnl
folders.
If the copied folders do not appear, click Refresh or press F5.
Modify the Customer.java file
so the KeywordFilterField displays the data properly.
In Package Explorer, expand the SUP101Sample\src\SUP101
folder.
Tip: If you do not see the SUP101 package, refresh the
project.
Open the Customer.java file.
After the line: /** End code region: JSON methods **/, add
this code: public String toString() { return getFname() + " " +
getLname(); }