In a previous version of 4D for iOS, we introduced Many to One relations. 4D v18 completes the list of relations available in 4D for iOS by allowing you to easily build the most complete apps with the most engaging user experience you can get on a mobile phone!
HOW DOES IT WORK
All of your relations are now available in the Structure section. One to Many relations and related tables in your iOS app are displayed. Managing relations is very intuitive, to do so simply:
- Publish the One to Many relations.
- Drop the relation onto the detail form of your choice in the Forms section.
And that’s it! 4D for iOS does the rest for you!
Take a look at the complete documentation about the relation definition process.
After building YOUr IOS APP
When you build your app, you’ll see that a new custom relation button (the Tasks list button in the image below) is available in the detail form you linked. This button allows you to navigate straight to the related table. And since we’re huge fans of customization, 4D for iOS allows you toeasily create and include your own custom relation button in your project.
You’re also able to define the title in the Labels & Icons section to be displayed in the destination view and keep track of the view you come from. And of course, you can define a short and a long label, as well as an icon in the Labels & Icons section.
NAVIGATE BETWEEN RELATED VIEWS
In your 4D for iOS app, you will be able to easily navigate between your related views thanks to the new Card navigation feature available in iOS 13. You can then swipe from the top to the bottom to dismiss the current related views. Tutorials are available from the 4D for iOS doc center to guide you through the creation process.