Skip to content

Calculation using node from nested repeat has absolute reference #453

@MartijnR

Description

@MartijnR
type name label calculation
begin_repeat plot_registration Plot registration  
geoshape plot_shape Go around the plot  
begin_repeat species_registration Species registration  
integer species_nb Species number  
end_repeat      
note total_nb_of_trees_allocated_info Total  number of trees allocated to be planted sum(${species_nb})
end_repeat      

The output for the calculation is (which sums all species_nb question in the form) :

calculate="sum( /data/plot_registration/species_registration/species_nb )"`

In this case it would be safe to assume the users wants to sum only the species_nb inside an instance of the higher level each plot_registration repeat.

Hence the output should be:

calculate="sum( ../species_registration/species_nb )"`

Metadata

Metadata

Assignees

No one assigned

    Labels

    ${} referencesRelated to pyxform reference variablesbug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions