My post below regards the annotations.alan with version yar20.
I expected this query to exclude entries where ‘Has Stock’?‘No’, per the grammar (‘query’ feature → ‘filters’ → stategroup ‘filter’ = ‘yes’ with ‘states to include’). But rows with ‘Has Stock’?‘No’ still show up:
'query' (
'label' = [ "Order Lines" ]
'query' = >'Colli Type' on .'Purchase Orders'* .'Order Lines'* (
'filters' = [
(
'label' = "Has Stock"
'property' = .'Has Stock' (
'filter' = 'yes' (
'states to include' = [ state 'Yes' ( ) ]
)
)
)
]
'properties' = [ ... ]
)
)
‘Has Stock’ is a derived stategroup that equals ‘No’ if ‘Total Stock’ within .‘Purchase Orders’* .‘Order Lines’* equals 0.
Is the filter feature supposed to restrict the result, or am I missing something?