Data Model > Available DSCs > mrScript MDSC (mrRoutingScript MDSC) > Custom properties on the routing object
 
Custom properties on the routing object
Custom properties on an MDM document's Routing object that are relevant to the mrRoutingScript MDSC are DefaultLayoutTemplate (in the Question context) and MustAnswer (in the QC context).
If these custom properties have been set directly on the routing object, they apply to all routing contexts in the MDM document, including the Paper routing context. However, these properties can also be set on a custom property of the routing object that is itself an MDM Properties object (see also IProperties in the MDM Object Model Reference), is set in the Question context, and that has the same name as one of the routing contexts in the document. In this way, these properties will apply only to the routing context that has the same name as the properties object they are stored in. (This method cannot be used for the Paper routing context.)
DefaultLayoutTemplate
This is a global setting for IOM to which questions default if it is not set explicitly on the question. It is a filename which contains the name of the default template and is set by the Build activity to DefaultTemplate.htm. The mrRoutingScript MDSC generates a line of the following form at the top of the script after the line label "__StartOfScript":
IOM.LayoutTemplate = <filename>
If the DefaultLayoutTemplate property is not set, <filename> is set to an empty string ("").
MustAnswer
This is a global setting for IOM to which questions default if it is not set explicitly on the question. It is a boolean value indicating whether questions must be answered. The mrRoutingScript MDSC generates a line of the following form at the top of the script after the IOM.LayoutTemplate statement above:
IOM.MustAnswer = <True or False>
If the MustAnswer property is not set, <True or False> is set to True.
See also
Custom properties on routing items
Custom properties on questions
mrScript MDSC (mrRoutingScript MDSC)