TOC PREV NEXT INDEX



Connect to the servlet from the client


Go back to Simplicity for Mobile Devices, leaving Simplicity Enterprise open.

Now that there is a servlet for your transaction to connect to, you will set up Simplicity to connect.

  1. Select transaction0 in the tree if it is not already selected.
  2. Note the space for URL of Servlet in the property sheet for transaction0. The default address of 'http://127.0.0.1' points at the current machine, but the Servlet you just created has a more complex location than that. To see a list of servlets, press the Browse button. A dialog will appear with a list of servlets running in Simplicity Enterprise which you may connect to. You should see a servlet listed with a name of 'MobileDemo/servlet/MobileDemo' in the list. Select this and press Ok. The URL of Servlet field will be updated to reflect your selection.

Now that you've selected a Servlet, you will want to go to the Display options node of the Transaction. This node will allow you to quickly specify which commands will trigger the transaction and what screens will be shown after a transaction has completed successfully.

  1. Select the Display options node under the transaction. In the properties of this node.
  2. Select 'Query on query'. This will perform a transaction after the Query command (which is located on the query TextBox) is executed.
  3. Next select the Data to send node. This will let you choose what information to send to the servlet.
  4. The information which should be sent is the text of the Query textbox. To do this, choose 'query_TextBox_Text' in the list.

Data Representations, Inc.
http://www.datarepresentations.com
support@datarepresentations.com
sales@datarepresentations.com
TOC PREV NEXT INDEX