Features of MobileFirst Studio
MobileFirst Studio provides the facilities to automatically complete attribute values, validate adapters on three levels, and to fix errors in adapter configuration.
Auto-complete
The auto-complete feature offers a list of possible values for attribute values. In the following example, the JavaScript Editor displays a list of values for the possible field types of a record field. In this way, the auto-complete feature helps correct configuration of an adapter.
Figure 1. Adapter configuration through the auto-complete feature.
![]()
Adapter validation
MobileFirst Studio provides adapter validation on three levels:
- Schema validation
- The XML Editor validates the XML file as well-formed and conforming to the rules defined in the validating schema.
- Logical validation of the XML
- MobileFirst Studio provides logical validation of the XML, based on MobileFirst adapter constraints. For example, if a procedure is a JavaScript procedure, then field mapping is not permitted.
- XML/JavaScript validation
- MobileFirst Studio provides validation between XML and JavaScript. It verifies that each declared JavaScript procedure has a corresponding procedure in the adapter JavaScript file with the appropriate signature (that is, input parameters and return values).
Quick fix
The MobileFirst Studio provides Quick Fix options for adapter configuration errors.
Whenever an error is detected, the error console displays the offending code. To activate the Quick Fix window, right-click the error in the console and select Quick Fix. Alternatively, press Ctrl+1.
Figure 2. Quick Fix options for adapter configuration problems.
![]()
Figure 3. Quick Fix option for missing JavaScript functions.
![]()
Specifically, MobileFirst Studio provides a Quick Fix option for missing JavaScript functions. The Quick Fix creates the missing function in the corresponding JavaScript file (also creating the file if one does not exist).
![]()
Parent topic: Develop the server side of a MobileFirst application