Add generic event listeners to the designer
The generic event listener mechanism is described here: https://developers.vertigisstudio.com/blog/2023/03/01/mobile-generic-event-listener/ but it involves manual editing of the app.json file. Could this functionality be added to the Mobile designer, like how it already is in the Web designer?
If this is not possible, would it be an idea to at least add the information from the blog to the documentation? As it is, it is kind of hard to find.
-
Hi Berend, may I ask what's the use case you're asking for? As in, which Mobile components you'd like to detect change on that aren't Workflow-related?
In Workflow, you can configure a change event detection, and we do support that in Mobile. Using any form element in Workflow, you can add a `change` event and configure a subworkflow to perform the task you need.
0 -
Hi Jack Basha
Yes, many times a workflow is running already, but not always. In this particular case, we were looking at how we could trigger a workflow after a sync operation is finished, i.e. after the offline.area-edits-submitted event.
We can already do this using the generic event listener function as described in the linked article, but we would need to 1) Remember where that blog is ;-) and 2) Manually edit app.json
It would help if the generic event listener mechanism was described in the documentation, but having it in the designer UI would be even better. Something similar to Services > Event Service in the Web designer.
0 -
Hi Berend,
Ah I see, thanks for clarifying! Yeah I can definitely agree that we can, at the very least, document this a bit better :)
I will bring this up with the Mobile team and discuss what we can do about it. I'll keep you updated on the outcome of that.
0
Please sign in to leave a comment.
Comments
3 comments