-
Notifications
You must be signed in to change notification settings - Fork 23
Node positional calculation not working dynamically #455
Comments
http://localhost:8005/?xform=NodePositionCalc.xml
|
I believe the two none-working formulas are evaluating correctly because current() is missing in the predicate (same as #398 (comment)). That would be a pyxform issue then. Will confirm.
|
Pyxform issue already posted: XLSForm/pyxform#490 (and it looks like I was aware that OpenClinica needed this fix) |
Definitely no recent change in this very elementary XPath evaluation in Enketo. XPath expressions are clearly incorrect. However, in the past pyxform would have generated an absolute path for ${rownum}, which though this was also incorrect, may have caused this to be evaluated as desired. To bypass the pyxform bug, remove the ${node} references and replace by beautiful pure XPath
|
@MartijnR - Thanks. Am I correct in assuming that we will need to take this approach for now for any item references used in the instance expression? Is this syntax going to vary if the item being referenced is in a different group than the item that has this instance expression? |
I have created a new Pyxform issue (XLSForm/pyxform#531) since the previous fix was incomplete and did not handle expressions that contained spaces. |
This is all set. |
The attached form attempts to read in from the clinicaldata instance using three different methods:
Only the first method reads in the value successfully. The other options read in null. All three were expected to work.
Method #2 was in use on the original source form prior to deploying 2.5.6.oc-5 and working successfully then. Since that time, it reads no data.
XForm: NodePositionCalc.xml.txt
Clinicaldata instance: NodePositionCalc.clinicaldata.xml.txt
The text was updated successfully, but these errors were encountered: