Jump to content

Mapping questions to fields: Difference between revisions

From Resco's Wiki
Created page with "{{Inspections TOC}} {{WIP}} The data mapping feature allows you to map a question to a particular record field. You can read a field to populate the answer automatically or sa..."
 
Line 22: Line 22:
#* Regarding record (Record from which the questionnaire was started)
#* Regarding record (Record from which the questionnaire was started)
#* Record from a lookup question
#* Record from a lookup question
#  
# For each entity, select the record that should be mapped.
# Finally, select whether to read data from the record field or save the answer to the field.


<!--
[[File:Data mapping wizard 1.png|400px|Select record]] [[File:Data mapping wizard 2a.png|400px]] [[File:Data mapping wizard 2b.png|400px]] [[File:Data mapping wizard 3.png|400px]]
Read data
When questionnaire created
On create and on change
Never
 
Write data
On every Save
On Complete only
Never
-->

Revision as of 10:16, 13 December 2022

Warning Work in progress! We are in the process of updating the information on this page. Subject to change.

The data mapping feature allows you to map a question to a particular record field. You can read a field to populate the answer automatically or save the answer to a record field at the end – or both.

Identify the mapped record

You have several options for indicating which record and field should be mapped to an answer.

  • One of the simplest options is using the regarding record. This is the record from which the questionnaire was started. If your workflow assumes that you launch questionnaires from an entity form, for example, you go to an asset and start the inspection, this is the way to go.
  • If you have a list of questionnaire templates directly on your home screen or start inspection differently, the regarding field is empty. Instead, you can add a lookup question to your questionnaire template and then use the lookup target as the mapped record.

Set the mapping direction

Once you identify the record and field, you can choose mapping direction. Essentially, you can:

  • read data from the record to populate the answer on the questionnaire
  • write data from the answer into the record field
  • or both!

Edit the questionnaire template

  1. Edit a questionnaire template in the designer and enable Data Mapping in the toolbar.
  2. Click the link button to start the data mapping wizard.
  3. Select which record should be linked to the question:
    • Regarding record (Record from which the questionnaire was started)
    • Record from a lookup question
  4. For each entity, select the record that should be mapped.
  5. Finally, select whether to read data from the record field or save the answer to the field.

Select record