Skip to Content

<body><p>Creating Blackberry Application in Sybase Unwired Workspace makes it really simple to Navigate to another Screen. However, navigation to a Web URL is a little tedious process that we shall discuss here.</p><p>1.       Go to mobile Development Perspective</p><p>2.       Create a new Mobile Application Project called NavigationApp.</p><p>3.       Right click on the Project and choose New -> Device Application Designer</p><p> <img  />//weblogs.sdn.sap.com/weblogs/images/252061154/image002.jpg|height=188|alt=Device Application Designer|width=434|src=https://weblogs.sdn.sap.com/weblogs/images/252061154/image002.jpg!</p><p>4.       Name the file, NavigationApp.bob and choose the Platform device as Blackberry 9530</p><p>5.       Click Start to start editing the Application.</p><p> <img  />//weblogs.sdn.sap.com/weblogs/images/252061154/image004.jpg|height=317|alt=Edit the Application|width=246|src=https://weblogs.sdn.sap.com/weblogs/images/252061154/image004.jpg!</p><p>6.       Drag and drop an empty screen and name it SAP Links.</p><p>7.       Double click the screen to edit it.</p><p>8.       Create a screen as shown below:</p><p> <img  />//weblogs.sdn.sap.com/weblogs/images/252061154/image006.jpg|height=157|alt=Screen|width=253|src=https://weblogs.sdn.sap.com/weblogs/images/252061154/image006.jpg! </p><table border=”1″ cellspacing=”0″ cellpadding=”0″><tbody><tr><td width=”85″><p>1.</p></td><td width=”308″ valign=”top”><p>SDN</p></td><td width=”197″ valign=”top”><p>[http://sdn.sap.com | http://sdn.sap.com/]</p></td></tr><tr><td width=”85″><p>2.</p></td><td width=”308″ valign=”top”><p>SAP Education</p></td><td width=”197″ valign=”top”><p>[http://www.sap.com/services/education | http://www.sap.com/services/education]</p></td></tr><tr><td width=”85″><p>3.</p></td><td width=”308″ valign=”top”><p>SAP Service Marketplace</p></td><td width=”197″ valign=”top”><p>[http://service.sap.com | http://service.sap.com/]</p></td></tr></tbody></table><p>9.       Create a new Java Project “MyBBCustomCode”</p><p> <img  />//weblogs.sdn.sap.com/weblogs/images/252061154/image008.jpg|height=370|alt=Java Project|width=385|src=https://weblogs.sdn.sap.com/weblogs/images/252061154/image008.jpg!</p><p> 10.   Ensure that you are in the Mobile Development Perspective. Select Navigation.bob file and double click on the screen titled “SAP Links”. Select the hyperlink for SDN.</p><p>11.   Click on the Action Tab and click the arrow adjacent the Next button to choose “Blackberry Custom Code”</p><p><img  />//weblogs.sdn.sap.com/weblogs/images/252061154/image010.jpg|height=345|alt=Add Custom Code|width=470|src=https://weblogs.sdn.sap.com/weblogs/images/252061154/image010.jpg!</p><p>12.   Select Create New Action Class from the popup and create a new Action class, HyperLinkAction.</p><p> <img  />//weblogs.sdn.sap.com/weblogs/images/252061154/image012.jpg|height=357|alt=Create Action Class|width=336|src=https://weblogs.sdn.sap.com/weblogs/images/252061154/image012.jpg!</p><p>13.   Click Finish.</p><p>14.   Click OK to select the newly created Action class for Custom Action.</p><p>15.   Remove any build errors from MyBBCustomCode and NavigationApp projects.</p><p>16.   Save the NavigationApp.bob file</p><p>17.   Right click on the bob file to “Generate the Device Application and copy to the Simulator.”</p><p> <img  />//weblogs.sdn.sap.com/weblogs/images/252061154/image014.jpg|height=423|alt=Generate Device Application|width=455|src=https://weblogs.sdn.sap.com/weblogs/images/252061154/image014.jpg!</p><p>18.   Click Next</p><p>19.   Select the option to Deploy Blackberry Application, and to open the Generated folder (from the Advanced option)</p><p> <img  />//weblogs.sdn.sap.com/weblogs/images/252061154/image016.jpg|height=332|alt=Generate Application Wizard|width=406|src=https://weblogs.sdn.sap.com/weblogs/images/252061154/image016.jpg!</p><p>20.   Click Finish.</p><p>21.   From the folder that opens, navigate to folder generated\com\sybase\uep\bobclient\custom</p><p> <img  />//weblogs.sdn.sap.com/weblogs/images/252061154/image018.jpg|alt=|src=https://weblogs.sdn.sap.com/weblogs/images/252061154/image018.jpg!\ .metadata\.plugins\com.sybase.uep.bob.rim\NavigationApp.bo” width=”426″ height=”457″ /></p><p>22.   In the SUP Workbench, add NavigationApp.jar to the build path of MyBBCustomCode project. NavigationApp.jar can be located at</p><p><supWorkspace>\ .metadata\.plugins\com.sybase.uep.bob.rim\NavigationApp.bob</p><p>23.   Add the following code to the run method of HyperLinkAction</p><p> <img  />//weblogs.sdn.sap.com/weblogs/images/252061154/image020.jpg|height=114|alt=code|width=624|src=https://weblogs.sdn.sap.com/weblogs/images/252061154/image020.jpg! </p><p>24.   Verify the screen name from class BOBCUIDefinition.java open in Step 21.</p><p>25.   Assign the same Action class to other Hyperlinks in the SAP Links screen.</p><p>26.   Right click on the bob file to goto Generate Blackberry Application Wizard</p><p> <img  />//weblogs.sdn.sap.com/weblogs/images/252061154/image022.jpg|height=490|alt=Generate Application Wizard|width=489|src=https://weblogs.sdn.sap.com/weblogs/images/252061154/image022.jpg!</p><p>27.   Start the NavigationApp from Blackberry</p><p> <img  /></body>

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply