---
title: "All trees in one input table but getting them by plot sections into hierarchical structure"
url: "https://openforis.support/questions/1046/all-trees-in-one-input-table-but-getting-them-by-plot-sections-into-hierarchical-structure"
tags: ["collect", "collectmobile"]
status: "answered"
score: 0
answer_count: 4
asked: "2017-02-10T10:48:39"
last_activity: "2017-04-11T10:18:00"
source: "Open Foris Support - Q&A Forum"
license: "Copyright Open Foris, 2026. Some rights reserved under creative commons license."
---

# All trees in one input table but getting them by plot sections into hierarchical structure

Asked by Lauri (OF) on 2017-02-10

Hello OF Team,

We are considering option to record trees on sample plot fluently. Meaning that we keep tree-form at the plot level and just add plot section information into one column for every tree. This way we could avoid flipping between forms (of different stands/plot sections) and can measure every tree straight. BUT if we want to use Calc for calculation, and this set up does not work correctly.

I think that if data is collected by using field forms and we apply a (true) hierarchical survey, then the entry staff could still enter trees by plot sections into Collect if we teach them to do so. They should then split those trees into their corresponding plot stands/sections. But the problem comes along Mobile, we do not want to browse between various plot-plotsection windows when recording trees.

So is there some solution for this case?

Best regards, Lauri


## Answer (score 1, by Lauri (OF) on 2017-04-10)

Link: https://openforis.support/questions/1046/all-trees-in-one-input-table-but-getting-them-by-plot-sections-into-hierarchical-structure/1206

Hi Team,

a bit slow reply from my side.. but, can you please show an example how to use the Referenced key attribute property to assign all the attributes (or even just one attribute) of a tree entered under entity 'cluster/plot/treetable' into the entity 'cluster/plot/plotsection/tree', where entity 'treetable' contains a 'plotsection_id' as an attribute?

Should 'cluster/plot/plotsection/tree' have already an identical structure as 'cluster/plot/treetable'?

Regards, Lauri


## Answer (score 1, by Stefano (OF) on 2017-04-11)

Link: https://openforis.support/questions/1046/all-trees-in-one-input-table-but-getting-them-by-plot-sections-into-hierarchical-structure/1207

Hi Lauri,  
The idea was that if you have an entity *treetable* with an attribute *plot_section_id*, specifying that it refers the *plot_section_id* of the entity *plot_section* will make another entity called 'tree_alias' appear inside the entity *plot_section* during the data export/import into Calc, with the same attributes as the entity *tree*, without having to create this entity in the Survey Designer.  
Will this make sense to you?  
Thanks,  
Open Foris Team


## Answer (score 0, by Stefano (OF) on 2017-02-28)

Link: https://openforis.support/questions/1046/all-trees-in-one-input-table-but-getting-them-by-plot-sections-into-hierarchical-structure/1112

Hi Lauri,  
We are thinking to a possible solution: what about defining the survey structure as it is more comfortable for data entry and then using the *Referenced key attribute* property of the tree/land_use attribute, in your case, to specify that this attribute refers to the plot_section entity?  
During the import of the data into Calc it will be possible to *transform* the data so that the hierarchical structure will look different into it.  
Let us know, many thanks.  
Open Foris Team


## Answer (score 0, by Lauri (OF) on 2017-04-11)

Link: https://openforis.support/questions/1046/all-trees-in-one-input-table-but-getting-them-by-plot-sections-into-hierarchical-structure/1208

Hi Team,

It makes sense and this idea is really good. Please implement it!

Lauri, Lauri
