New scripting features can have the biggest impact on your solution and on the time you spend scripting. There are a huge number of script steps, calculation functions and script triggers available in FileMaker Pro and while they will all have a positive impact on your solution, we have chosen to look at one of each that will boost your efficiency and offer problem-solving tools in FileMaker Go.
Insert from Device
Many business solutions utilise FileMaker Go, the mobile sidekick to FileMaker Pro for iPhone and iPad devices. FileMaker Go allows users to carry their database solutions with them wherever they go – whether they work on the road travelling from client to client, or in the office.
The Insert from Device script step allows these mobile users to quickly capture data, such as a barcode, photo, video, sound or signature. The selected content is automatically entered into a container or text field.
Storing a photo of a product or capturing a signature from a client with FileMaker Go keeps your database organised, makes data entry and retrieval easier and minimizes the chances of losing important data.
Creating a scripted barcode capture solution is simple and straightforward with FileMaker 13. Read our script guide here.
Get Network Type
Working in the office or warehouse and having trouble connecting to your FileMaker Server? A new calculation function that can be used in FileMaker 13 solutions is Get ( NetworkType ), a function that will give users a better idea of the problem and how to solve it.
Added in the scripting stage, Get ( NetworkType ) returns one of four results pertaining to the network the database is currently using. The possible results are:
- ‘0’ if the file resides on the iOS device
- ‘1’ if the network type is unknown
- ‘2’ if the device is using a cellular network, or
- ‘ 3’ if the devices is using a Wi-Fi network.
The Get Network Type trigger makes identifying the network the iOS device is connected to simple. Worried about the cost of syncing new data to the FileMaker Server over your cellular connection? With the aid of the trigger, you can choose to wait for a Wi-Fi network connection before syncing.
With the OnLayoutSizeChange script trigger, developers can create enhanced interfaces depending on device orientation. This new script trigger is mainly targeted at FileMaker Go but also works in FileMaker Pro and FileMaker WebDirect when the window size is adjusted or when it is first opened.
In FileMaker Go, the script trigger allows the developer to create a landscape view and a portrait view that is automatically selected when an iOS device is rotated.
This offers a user the option of arranging a differing layout in both portrait and landscape views. One that is more productive for specific data input. For example, you may like to increase the clarity in portrait mode by aligning all of the buttons along the bottom of the display and leaving the rest of the screen open for data input fields.
The script trigger will work in Browse and Find modes.