Readonly Features by Attribute or Feature Type
Mark single features as readonly, or all features of a feature type, when viewing data on the Soarvo app.
Overview
Soarvo Mobile can make features read-only so users can view them but cannot edit or delete them in the mobile app.
Read-only behaviour can be applied in two ways:
- At feature type level, so every feature of that type is read-only.
- At individual feature level, so only specific features are read-only.
| ℹ️ | App version: Soarvo Mobile 0.0.258+. |
Making an Entire Feature Type Read-Only
Edit the target feature type in the web portal:
- Add an attribute named
_IS_READONLY. - Save/sync the feature type.
- Refresh the location in Soarvo Mobile.
Any feature using this feature type will be treated as read-only in the mobile app.
Effect in mobile:
- The feature can still be viewed.
- Edit actions are hidden/disabled.
- Delete actions are hidden/disabled.
- Snapping/edit workflows ignore read-only features where editing would be required.
Example feature type attribute:
_IS_READONLY
The value does not need to be set on each feature. The presence of the _IS_READONLY attribute on the feature type is enough.
Making a Single Feature Read-Only
Set the feature attribute _isReadonly on the feature itself.
Supported read-only values:
| Value | Result |
|---|---|
true |
Read-only |
yes |
Read-only |
| Empty value | Read-only |
null |
Read-only |
false |
Editable |
no or any other value |
Editable |
Example feature attribute:
_isReadonly = yes
This makes only that feature read-only, assuming the feature type itself does not already force read-only behaviour.
Precedence Rules
Feature type read-only takes priority.
If the feature type contains _IS_READONLY, then all features of that type are read-only, even if an individual feature has:
_isReadonly = false
In other words:
_IS_READONLYon the feature type always wins.- If the feature type is not read-only, Soarvo Mobile checks the feature's
_isReadonlyvalue. - If
_isReadonlyis not present, the feature remains editable.
Examples
Make every feature of a type read-only:
_IS_READONLY
Make one feature read-only:
_isReadonly = yes
Explicitly keep one feature editable:
_isReadonly = false
This only works if the feature type does not have _IS_READONLY.
Notes
_IS_READONLYand_isReadonlyare case-sensitive.- Use
_IS_READONLYfor feature type attributes. - Use
_isReadonlyfor individual feature attributes.
What's Next?