Add actions to your 4D for iOS apps

We’re thrilled to announce that support for actions in 4D for iOS is available with 4D v17 R5! This feature allows you to enjoy more interactivity with your mobile app. For example, you can set a task as completed or finished, or flag events to be checked. All with the swipe of a finger, or by simply selecting an action from a menu.

A new On Mobile App Action database method is available to declare your app’s actions. A new Action section has been added in the Project editor to allow you to define:

  • Names: Designate a name for each action
  • Icons: Select an existing icon or use your own from the icon library
  • Short and Long labels: Short labels are used for records (for example when you swipe left on a table cell) and long labels for table actions (the list of actions are displayed from the bottom of the screen).
  • Tables: Select the table the action is available on
  • Scope: Specify if the action is available for a record or a table

 

Here’s an example of a task application using 4D for iOS actions on a List form.

Define your action, edit the On Mobile App Authentication method, and create a method to be executed … it’s that simple!

Even better: There’s no need to rewrite the code for your business logic, just call your existing 4D methods with all verifications and calculations. Tasks such as those shown in the example above, (setting a task to postponed or finished) could trigger follow-up actions, such as sending an invoice or informing colleagues.

More information is available in the documentation, as well as a tutorial if you want to include your actions in a custom template.

 

 

David Azancot
• 4D for iOS Product Owner •David Azancot joined the 4D Product team as a Product Owner in 2017. He's in charge of writing the user stories and translating them into functional specifications. His role also includes making sure that feature implementations meet customers' needs.David graduated with an MBA in Marketing, Internet and Mobility from the Leonard De Vinci Institute and began his career in 2011 with a mobile start-up company, later acquired by Madvertise (a mobile marketing group). Passionate about mobile interfaces, he was the natural choice to develop interactive mobile ad formats for the group in 2015. In parallel, David has been developing his own iOS and Android applications since 2012.