-
Notifications
You must be signed in to change notification settings - Fork 1
SubItem_PropValues
MetaScript functions Subitem_PropValues
- Subitem_PropValues(item, property)
- Subitem_PropValues(item, attribute)
- Subitem_PropValues(item, property) results in a new uint32 domain unit with a string attribute containing the property values of the direct subitems of the item argument. The name of this attribute is the name of the property.
- Subitem_PropValues(item, attribute) results in a new uint32 domain unit with a set of string attributes containing multiple property values of the direct subitems of the item argument. The names of the resulting attributes are the names of the propertys.
- argument item can be any tree item.
- argument property needs to be a valid property name, the list of all properties can be found here.
- argument attribute needs to a string data item.
7.102
1.
container
PropValueSource
{
parameter
label:['ABC'];
parameter
sumNrInhabitants (ADomain): [2,5,3,2,0];
unit
domainA: nrofrows = 9;
unit
valuesB := baseunit('b', float64);
container
sublevel
{
attribute
meanNrInhabitants (PropValueSource): [1,2,1,1,0];
}
}
unit
name :=
SubItem_PropValues
(PropValueSource,'name');
unit
expr :=
SubItem_PropValues
(PropValueSource,'expr');
2.
unit
property : nrofrows = 2
{
parameter
name: ['name','expr'];
}
unit
name_and_expr :=
SubItem_PropValues
(PropValueSource, property/name);
name |
label |
sumNrInhabitants |
domainA |
valuesB |
sublevel |
domain name, nr of rows = 5
expr |
baseunit('b',float64) |
domain expr, nr of rows = 5
name | expr |
label | |
sumNrInhabitants | |
domainA | |
valuesB | baseunit('b',float64) |
sublevel |
domain name_and_expr, nr of rows = 5
GeoDMS ©Object Vision BV. Source code distributed under GNU GPL-3. Documentation distributed under CC BY-SA 4.0.