Dot notation
Jump to navigation
Jump to search
When working with Woodford and many other content tools, you often need to exactly identify a field in an entity, or a certain property of an object. We're using the dot notation to identify these. Here are some simple examples:
contact.name
- Use the syntax
entity.field
to refer to a particular field of an entity. In this case, it's the name of our contacts.
Questionnaire.IsNew
- Use the syntax
object.property
to refer to a property of an object. For example, IsNew is a property of a Questionnaire object.
In addition to these simple notations involving two parts, in some cases, you can chain more parts, all connected by dots. For example:
QuestionGroups.location.Question.rate-the-location_1.IsEnabled
- This might look intimidating, but in fact, this variable simply allows you to control whether the question about rating from the question group called "location" is enabled in your questionnaire.