You can access the data validation window by clicking on the Data Validation tab in either the Finish window when you save a new application, or the Properties Editor when you edit an application. The Data Validation tab allows you to verify regular expressions that define the format of user entered data in update applications that contain grid data.
For each data field, you can optionally enter a Detailed Instruction and Error Message. These fields are used by the client device when using a mobile device to enter or edit data in the application.
Validating data
Log in to Mobile Web Studio and create a new application that uses grid data.
Click Save to save the new application.
In the Finish window, click Data Validation.
In the data validation window, enter:
Validation Expression – enter a regular expression defining the format of the user-entered data.
Test – click to test your expression. When you click Test, the Regular Expression Tester window appears showing the results of the test.
Common Expressions – this drop-down list contains common regular expressions you can select from.
Detailed Instruction – optionally enter detailed instructions.
Error Message – optionally enter a custom error message.
If the results are valid after testing, click Save to close the Regular Expression Tester window. You are returned to the Data Validation tab, where the Validation Expression fields are populated with the tested regular expression.
Click OK.
Save the application.
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |