/guid/9202a8c04000641f8000000003cacaca rename
author:
contributor:
published:
updated:
Dec 18, 2008 11:03:18PM UTC
source uri:
Summary
In simplest terms, a Compound Value Type (or CVT) is a type in which the property fields are...
Content
In simplest terms, a Compound Value Type (or CVT) is a type in which the property fields are connected to each other and have a defined relationship. Some examples include Musical Group Membership, which contains the properties Member, Group, Roles, Period (start) and Period (end), and Film Performance, which contains the properties Actor, Character, and Special Performance Type. There are two special aspects relating to the way that compound value types are displayed. First, the properties of a compound value type are intended to be displayed on a single line, so that when a user clicks edit next to a property that uses a CVT as its expected type, they will see all the properties of that type displayed next to one another. If you edit the Performances property for a film, for example, which has the CVT of Film Performances as its expected type, you'll see the empty fields for Actor, Character and Special Performance Type appear on a single line for that property. One way to think of a CVT is that it's a method for providing multiple information fields for a single property when that property uses the CVT as its expected type. Another special aspect of a CVT is that, while each of its properties can be a type that has its own list of topics (for example, the Actor property in Film Performances has an expected type of Film Actor, which has its own list of Film Actor topics), there are no topics associated with the CVT type itself. There are, for example, no individual Film Performance topics; if you look at the Film Performance type, you'll see that there are topics listed for each of its properties, but there are no individual Film Performance topics. Creating a CVT is relatively simple. Note that you cannot use a CVT as the expected type for a property within another CVT. For example, if you are creating a CVT that should display money values, you would have to have separate properties for currency and amount, rather than using the existing Dated Money Value CVT. For more on compound value types, see the Developer Blog
Recent Discussions about None
There is no discussion about this document.
Start the Discussion »