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

View Query Within Record displays error message when query is part of or in the row after a deleted repeating group row #15

Open
eprager412 opened this issue Jan 29, 2024 · 2 comments

Comments

@eprager412
Copy link

eprager412 commented Jan 29, 2024

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
1: Open attached form in mode /single/fs/ repeatgroup_query_xml.txt with 3 repeat groups.
2. Add data to each item1 in repeats 1,2,and 3.
3: Add a query to item1 in both repeat 2 and 3
4: Remove repeat 2
5: Access query within record for item1 in repeat 3 based on query url

Expected: url will direct the user to the query for item1 but it is now the 2nd repeat in the UI.
Actual: url does not direct the user to the query and displays an error message "The item you are trying to access has been removed from this form. Please use the View Query Only icon instead of the View Query Within Record icon to see it."

Browser and OS (please complete the following information):

  • Windows PC using Chrome.

Screenshots:
2024-01-29_14-24-13_image0
2024-01-29_14-22-17_image1

2024-01-29_14-23-12_image2

@pbowen-oc
Copy link

pbowen-oc commented Jan 31, 2024

We are likely currently just passing XPath like:
/path/to/repeat[2]/node

A solution would be to pass in XPath that refers to the ordinal attribute we are looking for like:
/path/to/repeat[@enk:ordinal="2"]/node

@pbowen-oc
Copy link

This will be handled directly on the OC side.

@MartijnR MartijnR transferred this issue from OpenClinica/enketo-express-oc May 22, 2024
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

No branches or pull requests

2 participants