- 1. What are resource attributes?
- 2. How to visualize/assign attributes to a database?
- 3. What is the main resource of the intervention?
- 4. How to display the value of a resource attribute for the operator?
- 5. How can the operator modify a resource attribute?
- 6. How to use resource attributes in your forms?
- 7. Updating asset attribute values
Resource attributes are data that will allow you to characterize and define your resources. You can collect data from the field and thus update the elements of your databases.
1. What are resource attributes?
Link Attributes / Databases:
Each database is defined by attributes. Databases are made up of resources. All resources in the same database will have the same attributes. An attribute can be present in one or more databases.
Associating attributes with a database allows you to structure the content of these databases. The data will be structured and the exploitation of this data will thus be easier.
2. How to visualize/assign attributes to a database?
- Click on the database
- Go to the Structure tab of this database.
- You can either add an existing attribute to your database, or create a new attribute for your database.
- On this Structure page, you can also dissociate an attribute from a database. All resources of the database will thus be deprived of this attribute.
- You can create resource attributes only from this structure page. The Attributes page is only used to display all existing attributes.
3. What is the main resource of the intervention?
The main resource of the intervention corresponds to the resource selected at the beginning of the intervention (also referred to as the main equipment or main asset).
When a resource is chosen as the main resource of the intervention, all the blocks linked to a resource attribute will be pre-filled and/or modifiable, depending on the options checked and the attribute values of the main resource.
The resources selected using the Creation, Preset, Manual Selection, and Automatic Selection blocks can contain a resource that will be the main resource of the intervention.
For this, you must drag and drop a Database block, and check the option "This resource is the main resource of the intervention" within the settings of this block.
The minimum and maximum will necessarily be equal to 1.
Please note, ticking this box will disable the page at the start of the intervention, asking the operator to choose a resource.
4. How to display the value of a resource attribute for the operator?
- The brick in question must be linked with the relevant resource attribute.
- The "Pre-fill the value in the application" option allows the display of a resource attribute value on the application.
- The type of the brick must be equal to the type of the attribute. For example, a Text brick should be used to display a Text type attribute.
5. How can the operator modify a resource attribute?
- The brick in question needs to be linked with the relevant resource attribute.
- The "Allow editing in the app" option allows the operator to modify the value of a resource attribute from their application.
- The type of the brick must be equal to the type of the attribute. For example, a Text brick must be used to display a Text type attribute.
6. How to use resource attributes in your forms?
Context: Imagine a company reporting anomalies encountered on a construction site. Each anomaly must be described with a description. Therefore, the Anomalies database will contain a Description attribute of Text type.
During a second visit, the operator going to the site can update this description.
The anomaly will be selected at the beginning of the intervention as the main resource of the intervention.
- Drag and drop a Text brick into your form. Name it "Description of the anomaly"
- Link this brick with the resource attribute named Description of the anomaly.
- Check the "Allow editing in the application" and "Pre-fill the value in the application" options. Thus, the operator will be able to see the previous value and modify it if necessary.
- Publish the form.
- Launch your form. At the beginning of the intervention, choose a fault that has a description.
- Modify the description of this fault and finish the intervention
- Review the value of the Description attribute of this fault in your databases. The value entered in step 6 is now present.
7. Updating asset attribute values
The association of an asset attribute in a form often leads to an update of the value of this attribute in the database.
If the “Allow modification of a pre-filled value” option is checked, the operator has the right to enter data in this field, thus modifying the old value present in the database.
7.1. Asset attribute history
At database level, each asset attribute has a dedicated history. This is available via the edit field of a particular asset attribute.
Limitation Based on this history, it is not possible to identify how this value was modified (manually from the database or via an intervention).
1.2 Updating attribute history
During the intervention, when the new value filled in (manually entered or automatically pre-filled) by the operator is exactly the same as the last value (the one present in the database), the history will not take this modification into account. No mention of an update will therefore be displayed.