Linking Layer Fields to Attribute Sets
This section explains how to connect layer fields with Attribute Sets to enable dropdowns, multiselection lists, and barcode scanning during data capture.
Overview
Once an Attribute Set is created, its fields can be linked to vector layer attributes. This controls how data is entered and validated in the attribute form.
Supported widgets:
- Dropdown lists
- Multiselect lists
- Barcode / QR code scanning
Editing Layer Configuration
- Open Navigation Drawer → Manage layers
- Select a layer created earlier and press
Edit- the pencil icon on the context menu.
Linking a Field to an Attribute Set
- Select a layer field
- From the contex menu press Use Attribute Set - the icon containing letter
A - Choose:
- Attribute Set
- Attribute Field
warning
Field data types must match.
- Save changes
Dropdown Lists
Dropdowns are used when a single value must be selected.
Requirements
- Layer field type: TEXT / INTEGER / DOUBLE
- Attribute Set field with predefined values
Behaviour
- Only one value can be selected
- Values are validated against the Attribute Set
- Default values are supported
Multiselection Lists
Multiselection allows choosing multiple values from the same Attribute Set field.
Requirements
- Layer field type: TEXT
- Attribute Set field type: MULTISELECT
Storage Format
Selected values are stored as:
value1;value2;value3
Barcode and QR Code Fields
Barcode fields enable camera-based scanning.
Requirements
- Layer field type: TEXT
- Attribute Set field type: BARCODE
Behaviour
- On a field data entry automatically opens camera scanner
- Manual entry is still possible
Validation Rules
When an Attribute Set is linked:
- Only allowed values can be saved
- Empty values cannot be stored except the BARCODE type.
Example Configuration
| Layer Field | Attribute Set | Attribute Field | Widget |
|---|---|---|---|
| species | Trees | Species | Dropdown |
| defects | Inspections | DefectTypes | Multiselect |
| asset_id | Inventory | Barcode | Barcode Scanner |