This section shows how to link the update application (updateOrder) with the customer order application (customerOrder). This link enables you to update or edit some of the values in the customerOrder list when it is deployed to a mobile device. In this case, the Quantity variable was set to “update” in updateOrder, so the Quantity column can be updated.
Creating a link to the update application
In Mobile Web Studio, select Applications in the left pane, and Approved in the Application Builder Status menu.
Select customerOrder in the detail pane and click Edit.
In Application Builder, click Properties. The Properties Editor displays.
In Properties Editor, make these changes (otherwise accept the defaults):
Linked Applications – identify the application to which to link by clicking the Add button to launch the Find Application window.
On Find Application window, click Search to locate and select updateOrder, and click Add. The Find Application Window closes and updateOrder displays under Linked Applications.
Under Action type, select Update from the drop-down list.
Set up data validation for the Quantity field.
Linked Applications – select Update from the drop-down list. Additional parameters display.
Linked Application for Update – the application
name you entered on the Content tab, updateOrder
,
displays.
Field Name – the update field you specified
in the SQL statement, quantity
,
displays.
Common Expressions – select Number Only
from the drop-down list. The expression ^[0-9]*$
displays
in the Validation Expression box.
Test – tests the expression you entered. The Regular Expression Tester window displays.
In Test Value, enter 10
,
then click Test. The Test Result field displays Valid
.
In Test Value, enter ten
,
then click Test. The Test Result field displays Invalid
.
Click Save and the window closes.
Detailed Instructions – optionally enter
instructions for the user, such as Enter the quantity
.
Error Message – optionally enter a brief
error message, such as Numbers only.
Click OK to save, and close the Properties Editor.
On the Application Builder window, click Save to save the changes, and OK to confirm.
Click Close to close Application Builder.
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |