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

Replace pulldata implementation with sugar #6552

Open
seadowg opened this issue Dec 17, 2024 · 0 comments
Open

Replace pulldata implementation with sugar #6552

seadowg opened this issue Dec 17, 2024 · 0 comments
Labels

Comments

@seadowg
Copy link
Member

seadowg commented Dec 17, 2024

Blocked by #6454

Now that basic CSV secondary instance filters are optimized (by #6454), pulldata can be implemented as syntactic sugar by mapping to this expression:

instance('$instanceId')/root/item[$filterChild='$filterValue'][position() = 1]/$child

There's an example implementation of doing this with a function handler here.

Notes

For this to work, there also needs to be changes in JavaRosa: it should no longer not attach instances if they aren't referenced by an instance expression. Otherwise, instances only referenced with pulldata won't be available to JavaRosa to query.

As part of this, we can also stop creating the specific pulldata DB: it will only be required for forms with search.

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

No branches or pull requests

1 participant