Selecting - API 'repeat' responses - in a dropdown menu

Hi @Teodor ,

Following on from your solution yesterday, I tried ‘similar’ for some other ‘repeat’ items in a dropdown. I think this time I am placing elements of the code in the wrong place. I do get repeats - but again the same repeating value, not the different values of the API response data.

the code is below with some visual reference.

Thanks

<div class="container" <div class="dropdown" id="defectcode_repeat_API">
    <div class="dropdown" id="repeat2">
        <button id="dropdown1" class="btn btn-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
            Dropdown button
        </button>
        <div class="dropdown-menu" is="dmx-repeat" id="repeat2" aria-labelledby="dropdown1" dmx-bind:repeat="api_GET_AQL_report_OK.data.data.defectCodes">
            <a class="dropdown-item" is="dmx-repeat" internal id="dropdown_defect_1" dmx-bind:repeat="api_GET_AQL_report_OK.data.data.defectCodes[0].defect_code" </a>
                <a class="dropdown-item" internal id="dropdown_defect_2">{{api_GET_AQL_report_OK.data.data.defectCodes[0].defect_code}}</a>
        </div>

    </div>
</div>

Community Page
Last updated: