Professional > Using UNICOM Intelligence Professional > Using UNICOM Intelligence Professional to develop interviews > Working with multiple contexts
 
Working with multiple contexts
Contexts (or “user contexts”) define different uses for metadata. When you create an interview script (.mdd) file in UNICOM Intelligence Professional, Question and Analysis contexts are added to the metadata. The Question context is intended to store texts and custom properties that are to be used in the data collection phase of a survey, and the Analysis context is designed for texts and properties that are to be used when analyzing the collected case data. For example, a question text in the Question context might say “What is your name?”, whereas the text for the same question in the Analysis context might just say “Participant's name”.
When you create an interview script file, UNICOM Intelligence Professional makes the Question context the default (or “base”) context. Therefore, when you add question and category labels to the metadata section of a new interview script, you are actually defining these texts in the Question context.
To define labels and custom properties in other contexts, select Contexts from the UNICOM Intelligence Professional View menu, and select the context or contexts that you want to view. For each context that you choose, UNICOM Intelligence Professional adds an “area-code” definition (which defines a combination of language, context, and label type) near the top of the interview script's metadata section, like that in the following example:
ANALYSIS lcl(en-US, Analysis, Label);
The name of the area-code, known as the “area name”, is also added to the label of every question and category in the metadata section, as highlighted in the following example:
name "What is your name?" ANALYSIS: - text;
To set the label text in the alternative context, simply replace the dash with the text, for example:
name "What is your name?" ANALYSIS: "Participant's name" text;
To set a custom property in the alternative context, replace the dash with syntax like that in the following example, which sets the Max property in the SAV context:
name "What is your name?" SAV: [ Max = 30 ] text;
If you want to set both a label text and a custom property in an alternative context, or you want to set label texts and custom properties in multiple alternative contexts, make sure that you add the area name before every label text or custom property. For example:
name "What is your name?"
  ANALYSIS: "Participant's name"
  SAV: "Name" SAV: [ Max = 30 ]
  text;
To remove an existing text or custom property from an alternative context, replace the text string (including the quotation marks) or property setting (including the brackets) with a dash, but do not delete the area name or the colon that comes after it. To hide a context, select Contexts from the UNICOM Intelligence Professional View menu, and cancel the selection for that context.
Note The Contexts menu option can be used only to view or hide contexts that are already present in the interview script file. To add or remove contexts, see Working with multiple languages.
See also
Using UNICOM Intelligence Professional to develop interviews