Show / Hide Table of Contents

    Action types: Output

    Where to find it:

    • Properties --> Widget --> Edit Touch events --> Add new --> Action types
    • Properties --> Content --> Edit Datasource events --> Add new --> Action types
    • Properties --> Content --> Edit Time Based events --> Add new --> Action types
    • Properties --> Content --> Edit Page Change events --> Add new --> Action types

    What can you choose from this field?

    Call API

    Your Request

    The request will always be called as "POST". If you need path variables or request params, you can type them in the URL field. Request body will depend on the external event type, for example, for a sensor event, it will contain "event", "id" and sometimes "value". For a simple case of API call as a click type on an interactive image widget, it will have "event name" and "event value". Read more about these in the respective guides.

    API Response Actions

    If you only need one-sided communication, you don't have to worry about the response. However, if you also need the content to change, your response has to follow some simple rules:

    • A request always has to have a fix, string, or number type property in the response. It can be any field, but it has to be the same.

    • Any property you want to handle later has to be in a compatible type with the selected action.

    If your always present property is called "response Code", you will need to type that to the main property name field. Then, in the main property value column you can set up rules for different scenarios.

    If you only need to jump to a different page or always want to open a popup, you don't need anything else. In case you want to change the value of a widget (text, image, etc) you also need to specify a property for that. This property has to be compatible with the widget and always has to exists when, based on the main property value, this action will be executed.

    Static Sensor or Device event

    If you choose this action type, you can decide between Sensor and Device option according to your usage conditions.

    Dynamic Sensor or Device event

    This event will just send whatever it triggered it towards the sensors. If any connected sensor can handle that, it will. If it came from an API call, it will send the whole response. If a datasource event, it will wrap the value in an objectlike this: {value: 3}.

    Sorry, your browser does not support inline SVG. article updatedarticle updated5/8/2023 9:50:55 AM (UTC)5/8/2023 9:50:55 AM (UTC)
    Feedback     Back to top Copyright © Geomant