Changes

Jump to navigation Jump to search
Line 631: Line 631:     
== Technical information ==
 
== Technical information ==
 +
 +
Resco Inspections utilizes the data-driven architecture rather than the metadata-driven approach. It means that the Resco Inspections data model (entities, fields, relationships) is already created, and when building a new custom questionnaire template you are not altering the data model – instead, you’re adding the entity records. As a consequence, the user who manages the questionnaire templates does not have to be a backend administrator since this user is not changing the data model.
    
All questionnaire data is saved as records on your backend server (Resco Cloud/Dynamics/Salesforce), in multiple custom entities:
 
All questionnaire data is saved as records on your backend server (Resco Cloud/Dynamics/Salesforce), in multiple custom entities:
* '''Resco Questionnaire''' stores information about the questionnaire as a whole.
+
* '''Questionnaire''' (resco_questionnaire) stores information about the questionnaire templates, snippets, and answered questionnaires. Each questionnaire can contain any number of question groups and questions.
* '''Resco Question Group''' stores information about the question groups and the questions it contains.
+
* '''Question Group''' (resco_questiongroup) stores information about the question groups. Each question group can contain multiple questions.
* '''Resco Question''' stores all the questions created for the questionnaire, as well as answers. The answers are stored in the '''resco_value''' field.
+
* '''Question''' (resco_question) stores all the questions created for the questionnaire, as well as answers. The unformatted answer value can be found in the Value (resco_value) field; formatted value in the Value Label (resco_valuelabel) field.
* '''Resco Questionnaire Folder''' stores information about the folder structure that organizes questionnaire templates in the designer. Usually, this entity does not need to be enabled in the app project.
+
* '''Questionnaire Folder''' (resco_questionnairefolder) stores information about the folder structure that organizes questionnaire templates in the designer. Each folder can contain multiple questionnaire templates. Usually, this entity does not need to be enabled in the app project.
    
When an app user starts a questionnaire in the app, a new copy of the template is created. For an answered questionnaire, we store both questions and answers. This approach ensures that when you change your questionnaire template, existing answered questionnaires are not affected; historical records are not altered.
 
When an app user starts a questionnaire in the app, a new copy of the template is created. For an answered questionnaire, we store both questions and answers. This approach ensures that when you change your questionnaire template, existing answered questionnaires are not affected; historical records are not altered.

Navigation menu