Dear all, I would like an attribute "id" in the root of my survey where the value is set to the last entered value + 1. In a non-root entity, I can do that using math:parent()/tree/id + 1 But in the root I cannot make reference to parent()/ and therefore I cannot make this work. Any help will be very much appreciated. Bruno
Accepted answer
Please see the answer to this other question and get back to us if it doesn't fix your issue.