Hello,
I am facing issue regard one calc expression on bind after updating to Orbeon PE.
Before I was using:
tag: "tag-release-2021.1-ce"
build: "orbeon-2021.1.202112312237-CE"After update I am using (actually 1.3, but just now updated to 1.4 and same issue):
tag: "tag-release-2021.1.4-pe-pseudo"
build: "orbeon-2021.1.4.202208011854-PE"Problem is when I try to output some calculated value and in calculation is used value from another calculation, example:
<xforms:bind id="bind21" nodeset="total" calculate="sum(../../ApplicationRows/Row/(if (string(number(replace(sumNoCalculation, ',' ,'.'))) != 'NaN' and
(Liik!='L' and Liik!='P')) then number(replace(sumNoCalculation, ',' ,'.')) else if (Liik='L' or Liik='P') then number(sumCalculated) else 0))" type="xforms:decimal" />
(total is sum of all the applications, sumNoCalculation and sumCalculated is used
in repeat )
Field sumNoCalculation is working fine, but with sumCalculated I can see that sum is calculated correctly, but total value is 0.
Field sumNoCalculation is declared as:
<xforms:bind id="bind32" nodeset="sumNoCalculation" relevant="matches(../Liik,'V|O|A|T|I|K|J')" constraint=".='' or matches(.,'^[0-9]+([.,][0-9]{1,2}){0,1}$')" type="xforms:string" />
Field sumCalculated is declared as:
<xforms:bind id="bind33" nodeset="sumCalculated" relevant="matches(../Liik,'L|P')" calculate="(some calculation)" type="xforms:decimal" />
To be more clear I made some pictues as well:
With PE version:
With CE version:
Also I noticed that it calculates the sum of previously added rows correctly if I will add new row/rows to table on PE version (still missing calculus from latest row):
Can anyone suggest what should I do to fix this issue?
Jaanus