×
Back to book

How to add the Timelines behaviour to your application

Learn how to add in the Timelines behaviour to your application by configuring its entity, user interface and security diagrams on the platform.

As we Timelines Behaviour Overview, the Timelines behaviour enables users to access a log of information relating to any number of entities.

For example, you may wish to keep track of a history of bookings which are created, updated, or deleted by users of your application. The Timelines behaviour will allow us to not only view a list of chronologically logged actions across an entire collection of bookings, but also a filtered down look at any changes made to a single booking item.

How to model the Timelines behaviour

Configuring your Entity Diagram

  1. To get started using the Timelines behaviour in your application, simply create a new entity or select an existing one in the entity diagram on the platform.

For this example, we will consider the following Booking entity.

  1. With the entity selected, click on the 'New Behaviour' button in the left-hand panel, and choose the 'Timelines' option.

  1. If done correctly, the Timelines behaviour should be listed in your entity as shown below.

Once we have activated the Timelines behaviour in our entity diagram, the next step is to configure the user interface to display the timeline where we wish it to appear in our application.

Configuring your User Interface Diagram

  1. In the user interface diagram on the platform, select 'Pages' and click 'New page' to create a page, or select an existing page to display our timeline on.

  1. With the page selected, select 'Tiles' and select 'Timeline Tile' to add the timeline to your page.

  1. Once you have added the Timeline tile, it should appear in your selected page on the user interface diagram as shown below.

  1. Finally, you will be prompted to give your Timeline tile a name and select the entity you wish to display a timeline for. In this case, we will select the Booking entity to which we added the Timeline behaviour previously in our entity diagram.

Now we have set up our timeline to appear in our application, the final step is to configure our security model to control our users' permissions to access this.

Configuring your Security Diagram

In the security diagram, you will want to ensure the different users of your application are granted the correct permissions.

In the model shown below, we can allow any Admin users to Create, Read, Update and Delete any data under the Booking entity that we have activated the Timelines behaviour. Additionally, any Admin users will have permission to 'Read' or view the page Home where we included our timeline previously.

Once you are happy with your entity, user interface and security configurations, go ahead and click on the 'Build application' button.

That's it! You can read more about How to add the Timelines behaviour to your application, or How to add the Timelines behaviour to your application within your application.