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

jr:choice-name call using indexed-repeat outside a repeat with unbound reference as second parameter crashes #757

Closed
lognaturel opened this issue Apr 12, 2024 · 0 comments · Fixed by #758

Comments

@lognaturel
Copy link
Member

Forum post, report from support@

Some folks have expressions like jr:choice-name(indexed-repeat(${choice}, ${thing}, 1), '${choice}') in existing forms. This is intended to get the label of a selected value in a specific repeat instance from outside the repeat. People use it to display a summary of repeat data.

This generally worked ok before XLSForm/pyxform#603 when jr:choice-name was often used with inline choice lists. Now, an XLSForm that worked before gets converted to use secondary instances instead and that crashes because the reference we use to identify the current choices is unbound (it references a full nodeset rather than a specific node). With secondary instance choice lists, there could conceivably be a choice filter on the list that makes the choices different depending on the repeat instance.

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

Successfully merging a pull request may close this issue.

1 participant