Use the assets attribute in your forms

Tags

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?

  1. Click on the database
  2. Go to the Structure tab of this database.
image
  • 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).

image

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.

image

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.
image

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.
image

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.

  1. Drag and drop a Text brick into your form. Name it "Description of the anomaly"
  2. Link this brick with the resource attribute named Description of the anomaly.
  3. 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.
image
  1. Publish the form.
  2. Launch your form. At the beginning of the intervention, choose a fault that has a description.
  3. Modify the description of this fault and finish the intervention
  4. Review the value of the Description attribute of this fault in your databases. The value entered in step 6 is now present.