I have like a total field "PriorCaustic", outside the repeating table and I have set its default value to the double evel of the repeating table field "P_Caustic_value"
substring(eval(eval(P_Caustic_value[. != ""], 'concat(";", xdXDocument:GetDOM("newline")/linebreaks/newLine, .)'), ".."), 2)
the only issue I have with this is the first line is a blank one but other than that I get my item with a ";" at the end. I want to add a "-" to the beginning