In an Arcade calculation attribute rule, return a custom informational message to the user/application if an operation was performed successfully.
For example, an attribute rule is designed to create a record in a related table: LIFECYCLE_TRANSACTIONS.
It would be helpful if we could inform the user that the related record was created (the user might not be aware). The user might need to review the record and edit it with comments, etc..
Edit:
I like @JohannesLindner‘s idea better:
[Put the custom message] in the Create Features Pane / Modify Features Pane. The generic success messages and error messages are shown there already, so imo that's the right place for custom messages.
Similar to this, but it would be a custom information message, not an error message (source) :
Disregard:
For example, a temporary "green information bar" at the top of the map could appear. And then after a few seconds, it would be automatically hidden.
That's how it works with the map in IBM Maximo Spatial. It's a pretty reasonable way to show a message. It's not as annoying as popup dialog window. But it's also visible enough to get the job done...it provides a message to the user...and the user can ignore it if they want to.
https://i.stack.imgur.com/h7DxG.png
Hmmm... I see the need for the user to know what happens if they edit a feature class.
First of all, I think that is your responsibility as database admin or data owner. If you grant write privileges to a user, you better make sure they understand the data structures and edit workflows they are dealing with.
But a message to remind the user or to control that the rules work correctly couldn't hurt.
I see two ways that could be implemented:
ArcGIS notifies the user automatically when a table gets edited due to an Attribute Rule.
That would be bad for these reasons:
You define it in the rule, similar to the errorMessage keyword:
var value = 5
return {
"edit": [{
"className": "OtherClass",
"adds": [
{"attributes": {"Field": value}}
]
}],
"successMessage": "We did it! 1 feature created in OtherClass."
}
Technically, you would be lying to the user, because at that point the edits wouldn't be applied yet, but that's the whole philosophy behind positive UX design...
This method would be good, because
Personally, I wouldn't want the message to show up on the top of the map, like in your mockup, but in the Create Features Pane / Modify Features Pane. The generic success messages and error messages are shown there already, so imo that's the right place for custom messages.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.