Iterating over data source in component produces weird results

I’m building a reuseable address search component, but the container iterating over the results to display the addresses found does not properly show only the address of the result in context.

Instead it concatenates all the unique result values. In my setup (shown below) the Text component inside the Results container is bound to the Address Name field of the result data source. I would assume only the Address Name value of one result should be shown on a single line.

My setup:

Result with some similar results and some unique results:

Result with all identical results:

EDIT: If I iterate over the data source directly instead of iterating over the component parameter data source, the results are as expected, so this seems to be a bug with passing in a multi cardinality data source to a component and iterating over it.

Hi Øyvind!

Thank you for the report. I have replicated the bug and filed an internal report.

I was able to get the correct behavior by changing the object selection in the data binding in the usage of the component from All to Context. Given that you do not place your component inside an iterator of addresses this should give the same behaviour as All.

We’ll report back when this is fixed.