Transfer listview dynamic code to query

I use dynamic code in Inspect to get the number of rows

I want to transfer it in a query so I can reuse it. Problem is that when doing that, the i variable from the listview is not accessible anymore.

What am I doing wrong ?


Hey @dberube!

What kind of container is the listview embedded in? You might try replacing i with 0 in the transformer (i.e. {{[0].parent }}).

Otherwise, if i is actually something that needs to be iterated over the query transformer won't have access to it. There are definitely workarounds, but knowing a bit more about your setup will help determine which is best for your use case!

Was that thanks