Skip to content

Models in Console

When creating an event handler or timer in the Backendless Console you will see a new drop-down list where you can select an existing model. To create a new one, simply type in the desired model and click the menu option to create it. The screenshot below is for creating a new event handler. You will see the identical "Model" drop-down in the "New Timer" popup:

new-java-handler-model

The Event Handlers screen in console displays the model name for every handler (see the MODEL column):

event-handlers-with-models.zoom70

When you download the generated code for event handlers and timers, you need to choose the model for which to download the code. The downloaded code contains only the event handlers and the timers for the selected model:

download-java-models.zoom70

Similarly, if you were to edit the code directly in the Backendless Console on the CODING screen, you need to choose the language and the model. The displayed tree of directories and files will contain only the code for the selected model:

java-model-coding.zoom80