This section displays all of your database tables and fields exposed by 4D Mobile Service.
Here, you can define a subset of your physical structure to replicate for mobile devices by selecting specific tables and fields. The selected:
- tables will be automatically added to the tabs of your app.
- fields will be available later when it's time to define your list and detail forms.
N to 1 relations
- 4D 17R5 allows you to visualize table relations and select related fields clicking on a relation. Then when your related fields are published, they can be used like any other field in the app creation process.
To help you define your app's structure, multiple filters and a search engine are available to make it easy to select your tables and field.
You can publish a selection of fields by pressing the spacebar rather than selecting them one by one.
Enable structure adjustments
In 4D 17R5, the 4D for iOS reload becomes incremental. This means that only new, modified or deleted data from the database will be updated. This is a great optimisation in terms of loading time!
To do so, 4D for iOS needs to make structure optimizations and create:
__DeletedRecordstable to store deleted records
__GlobalStampfields to store modification stamps for each published table in your mobile application
All you need to do is enabling 4D for iOS to make the necessary structure adjustments for an optimised mobile data update.
Once authorized, 4D for iOS will do all the work for you, and you will fully benefit from all the advantages of incrememental data reload.
These optimizations are required for both local and server databases.
Pull to refresh!
iOS app side, your data is updated each time you launch your app and each time your app goes foreground, to get constant updated data.
In normal use, simply swipe down from any listform to reload your data.
From iPhone settings, you can now reset your app data and find information about your app.
As soon as the admin do an important maintenance operation, he shall alert 4D for iOS app users that a Full reload is required : Recover by tag / Restoration / Compaction