Use the Edit Parameter dialog to define parameters for validating the data of a mobile application. Select Parameters in the left pane, then select a parameter in the right pane.
Allows you to create validation rules for linked mobile applications that contain CGI parameters. When a user enters parameter information for the configured mobile application, the information is validated, and either accepted or rejected based upon the validation expression. You can configure a custom error message for invalid values, and provide detailed instructions to the user about the data field.
To define data validation expressions, the mobile application must contain CGI parameters and define a "linked mobile application for insert" or “for update” to another mobile application.
Linked applications allows users to update the application’s source content from a PDA and link the source application with an update application. See the Unwired Accelerator Mobile Application Development Tutorial for information about linked applications.
Validation expression – one of the common regular expressions to be used to validate a user's entry. Or select Others and enter your own expression.
Click Test to test the value. When you select one of the common regular expressions, the expression is automatically entered. For example, if you select "numbers only", "^[ 0-9]*$" is entered in the next textbox. However, this is only a starting point. You can further customize the expression into something such as "^aaa[ 0-9]*$ " which matches any string with “aaa” followed by numbers only.
Detail instruction – enter any instruction to be displayed to the user regarding this field.
Error message – enter a custom message to display when a value is rejected.
Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com