Inherited_PropValues

miscellaneous-functions Inherited_PropValues

syntax

  • Inherited_PropValues(item, property)
  • Inherited_PropValues(item, attribute)

definition

  • Inherited_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 and of all referred items in the namespace. The name of this attribute is the name of the property.
  • Inherited_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 and of all referred items in the namespace. The names of the resulting attributes are the names of the properties.

applies to

since version

7.102

example

1.
unit<uint32> Region: nrofrows = 5;
{
   attribute<uint32> RegionNr         : [0,1,2,3,4];
   attribute<string> MetaScriptName   : ['NH','ZH','UT','NB','GE'];
   attribute<uint32> sumNrInhabitants : [550,1025,300,200,0];
   attribute<string> RegionLabel      : ['hs: Ams','hs: DB','hs: Ut','hs:DH',null];
   attribute<string> RegionDescr      : ['Texel..Gooi','Carnaval','Dom',null,null];
}
unit<uint32> PropValueSource := Region
{
   parameter<string> label            : ['ABC'];
   parameter<uint32> sumNrInhabitants : [2,5,3,2,0];

   unit<uint32>      domainA: nrofrows = 9;
   unit<float64>     valuesB := baseunit('b', float64);

   container sublevel
   {
      attribute<uint32> meanNrInhabitants (PropValueSource): [1,2,1,1,0];
   }
}

unit<uint32> name := Inherited_PropValues(PropValueSource,'name');
unit<uint32> expr := Inherited_PropValues(PropValueSource,'expr');
2.
unit<uint32> property : nrofrows = 2
{
   parameter<string> name: ['name','expr'];
}
unit<uint32> name_and_expr := Inherited_PropValues(PropValueSource, property/name);
name
label
sumNrInhabitants
domainA
valuesB
sublevel
RegionNr
MetaScriptName
sumNrInhabitants
RegionLabel
RegionDescr

domain name, nr of rows = 10

expr
 
 
 
baseunit(‘b’,float64)
 
 
 
 
 
 

domain expr, nr of rows = 10

name expr
label  
sumNrInhabitants  
domainA  
valuesB baseunit(‘b’,float64)
sublevel  
RegionNr  
MetaScriptName  
sumNrInhabitants  
RegionLabel  
RegionDescr  

domain name_and_expr, nr of rows = 10

See Also