You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

projectdoc Toolbox

Materialize the controlled property by an artificial property with the given path.

Identifier
mat:(property path)
Data Type
Property Path
Short Data Type
Property Path
Since
4.5

Materializing properties is the process to derive a value from a property path (like Property A->Property B->Property C)  and store it as an artificial property of a document instance.

To materialize a property based on the current property (i.e. the property whose control this is), a property paths must be specified that originates on the property.

 

A property Persons of doctype Organization is holding references to persons:

Property ControlArtificial Property NameArtificial Property ValueExplanation
mat:NamePersons->NameHanna, Sarah, JohnMaterializes the name of the Person(s).
mat:Address->CityPersons->Address->CityNew York, Rio, TokioMaterializes the names of the person's city names.

To use the materialized properties in queries (Where clause), use the following syntax.

$<Persons->Name>=[Hanna]
$<Persons->Address->City>=[New York]

Resources

Materialize by Doctype
Specify which properties to materialize as artificial properties by doctype.
Doctype Descriptor
Describes the doctypes model.
  • No labels