So, i am making a MDT and this is the part where someone makes a emergency. But he keeps updating it, like when someone is wounded, he needs to inform a ambulance of course! But how do i make it so that my data type keeps updating it? (I have a data type called all emergency’s where everything is stored).
Hi there, @judavanzanden2010… it would be a lot easier understand your question and potentially help you out if you could share some screenshots of what you are trying to describe. That being said, it sounds like you could simply be talking about making changes to an existing thing in a data type. If that’s what you are trying to do, have you tried using the Make changes to thing… workflow event?
Here you see my workflow. Above you see all settings about how fast each emergency service may drive and and which traffic rules they can ignore. Down there is a inout box with all the information about the incident. And down is a field with all users that are helping with the incident. And a button that ends the incident.
(its filled in here)
But what if you wanted to add some extra information? I dont really want a buttons that says Update emergency, but it just happends every 3 seconds or so.
If you don’t want the user to have to click a button to update the emergency, you can use auto-binding on the fields so changes are automatically saved to the database. As for how you make sure you are updating the right emergency, how are you showing a newly-created emergency to the user? Are you setting it at the page level? Or maybe all of your fields are in a group and you can set the group’s data source to the appropriate emergency?