why is the result of a relationship query not an iterable ?
Hi,
My case is: on a form, select themes and approaches, then display all projects that are involved with both those themes *and* approaches. sets of themes and sets of approaches can be selected.
I have to loop over both listboxes to get objectids for 2 relationship queries (why are listbox results not arrays ?).
The *and* requirement requires me to get the project-objectids produced by the theme query, to pass to the definition expression in the approach relationship query. However "get featureset objectid" does not work for the output of a relationship query because it does not produce a feature set, nor is it iterable (an array).
I like arrays because I can map, filter and generally slice them at will, which enables me to use evaluate expression instead of forEachs, creating smaller workflows.
In this usecase, querying the M:N relation tables directly produces a simpler workflow than using "query relationship" does (I know because I did create that alternative as well).
As a GeoCortex newbie, am I overlooking something obvious here ?
Kind regards,
Ronald van Aalst
Please sign in to leave a comment.
Comments
0 comments