Why should I use the Creation widget ?
The Creation widget allows the operator to create one or several assets during the intervention from the field.
It will allow to create new ressources into the databases.
Where is the Creation widget ?
The create an asset widget is available into the design studio, in the category Databases.
How to configure it ?
- You can define the minimum and maximum assets that can be created by the operator.
- You can also associate the asset created with a database or even make it have parent asset by default.
- The attributes assigned to the asset created can also be configured.
In practice, how can I allow my operator to create asset ?
My operator wants to report anomalies.
At each anomaly encountered, it will create a new anomaly (therefore a new resource) in order to feed the database.
How can I make sure that my operator can create anomalies and make sure that they are visible within the database ?
1. In my form, drag and drop the Creation widget. Name it "Report an anomaly". Choose a database in the filters.
2. Within the "Report an anomaly" widget, include a Text widget. Name the "Type of Anomaly". Link the brick to a Text type attribute named "Anomaly Type" for example then allow editing in the application to allow the operator to make modifications to it.
3. Publish your form and go to the application.
4. Start an intervention. Create a first anomaly. Define this anomaly.
You can create as many anomalies as you want. Once the intervention is completed, these anomalies will be visible in your database.
You can hide your Creations widgets!
It is possible to hide a Creation widget. The created assets will then be created automatically. To do this, you must have a display condition that triggers this Creation widget.
Let's take an example: The form must create an anomaly automatically, if the operator answers "Yes" to the question "Do you want to declare an anomaly?"
In the studio, you will need:
1. Drag and drop a first Yes/No widget (which will be used to trigger the Creation widget). Name it "Do you want to report an anomaly?"
2. Then drag and drop your Creation widget. Configure your Creation widget in order to choose creation criteria (especially the database).
3. On your Creation widget, place the following display condition: "Display if you want to declare an anomaly is Yes".
How to load datas automatically in the assets created and to hide those assets ?
Within the Creation widget, an option allow you to load datas automatically within the assets but also to hide those same assets.
Add a random suffix to the name of the asset created
In the settings of the Creation widget, an option allows you to add a suffix to the name of the asset created.
This suffix will then consist of 9 randomly generated digits. This will allow you to differentiate the asset created and prevent it from having the same name. A unique id will therefore be associated with each newly created piece of asset.
Be sure that the asset created becomes the main asset of your job
Within the parameters of the Creation widget, if you check the option "This asset is the main resource of the job", then the asset created will be the main asset of the job. Please note, if this option is activated, it will not be possible to create more than one asset with your Creation brick.
To go further
- In the Creation widget, you can link the widgets inside to attributes of your database. This will allow you to characterize the asset created with the correct attributes associated with it.
- It is possible to create two assets with the same name. The code associated with the asset will make it possible to differentiate them.
- By using tags, this allows you to use the information previously entered during the intervention to name the new asset.
- It's not possible to increase the number or the name of the ressources.
- You cannot create assets if you test the form in preview.