I'm interested in seeking more understanding regarding the difference between the result of Calculated Value fields and Initial Value fields in view mode in the Formula tab.
I have an eform that uses a dataset from an HTTP service for patient data, and at first I used the calculated field to manipulate the data into user friendly format, such as:
concat(fr:dataset('patient')/firstName,' ',fr:dataset('patient')/lastName)for the full name field and:
concat(fr:dataset('patient')/addr1,' ',fr:dataset('patient')/addr2,codepoints-to-string(10),fr:dataset('patient')/city,' ',fr:dataset('patient')/postcode)for the address.
These work fine in edit mode but when displayed in the view mode the results disappear. I know that a calculated field always tries to calculate regardless of the view but I would have thought that the calculation would still return the same result as this does not change. Can someone explain why the data in calculated fields with consistent data does not calculate? Is the dataset unable to be accessed in view mode?
I have since moved the calculations to the initial value field and set it to read only but its the older versions of the form that still display empty fields that are a concern to me and I can't logically see a reason why they do not show the calculated data.
I am on version 2018.1.2.201810050007 PE
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/2d4b6ab1-6509-4bb9-8b93-cccb013b0296o%40googlegroups.com