Custom properties on routing items
Custom properties on RoutingItem objects that are relevant to the mrRoutingScript MDSC are CategoricalPresentation, CategoricalPresentationColumns, MustAnswer, Template, textboxHeight and textboxWidth. They are all in the QC context.
CategoricalPresentation
This can have a value of combobox, checkbox or listbox and sets the type of control to use for a Single Response or Multiple Response categorical question. If a question called Quest has the CategoricalPresentation property set, the mrRoutingScript MDSC generates the following script:
Quest.Style.Control.Type = ControlTypes.<control type>
Quest.Ask()
<control type> is one of ctComboList, ctCheckButton or ctListBox as appropriate.
CategoricalPresentationColumns
This is allowed on categorical, text, and numeric questions, and is an integer that sets the number of columns to use. The mrRoutingScript MDSC generates script of the following form:
Quest.Style.Columns = <number of columns>
Quest.Ask()
MustAnswer
This is allowed for any type of question. For an question called Quest, the mrRoutingScript MDSC generates script of the following form:
Quest.MustAnswer = <True or False>
Quest.Ask()
Template
This sets the template for an individual question. The following script is generated:
Quest.LayoutTemplate = <filename>
Quest.Ask()
textboxHeight, textboxWidth
These properties specify the dimensions of a response box for a text question as a number of rows and columns. If these properties are specified and their value is greater than 0, script of the following form is generated:
Quest.Style.Columns = <value of textboxWidth>
Quest.Style.Rows = <value of textboxHeight>
Quest.Ask()
See also