You can see an example of this kind of querying in the docs section on dynamic defaults from form data. Look at the example in "XLSForm that looks up default values based on a selection" where we show using a choice_filter
of true()
to force the creation of a secondary instance. That is equivalent to not having a filter at all because all values are included. That's what I would recommend for now.
1 Like