Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect instance() expressions in notes and make them into outputs #646

Closed
lognaturel opened this issue Jun 28, 2023 · 0 comments · Fixed by #648
Closed

Detect instance() expressions in notes and make them into outputs #646

lognaturel opened this issue Jun 28, 2023 · 0 comments · Fixed by #648
Assignees
Milestone

Comments

@lognaturel
Copy link
Contributor

lognaturel commented Jun 28, 2023

Software and hardware versions

All versions

Problem description

If you put an instance() expression in a note such as instance('stuff')/root/item[name=${thing}]/label, it's not recognized by pyxform. The XML output will be something like instance('stuff')/root/item[name=<output value=" /data/thing "/>]/label. This means any secondary instance property to display must be stored in a calculate.

Steps to reproduce the problem

Put the expression above in a form. For example: https://docs.google.com/spreadsheets/d/1f1CN4o62T9m5IUIhaW3wS25ga1W9RNl6TFGktAQjMKY/edit#gid=0

Expected behavior

instance() expressions are also put in outputs.

Desired XML output: instance_notes.xml.zip

We also will need to think of where best to document this pattern.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants