Ok, this has to be simple…
I have a datastore that has records in it that I am trying to repeat. But for each item in the datastore my repeat is repeating 6 times, instead of just once.
Here is data store info:
Here is the code. I am doing a nested repeat to pull order data from each of the items in the data store array.
<div dmx-repeat:repeatordersarray="shippingArray.data">
<div dmx-repeat:repeat1="conn_PackingSlip.data">
<main class="mt-4">
<div class="container">
<div class="row">
<div class="col">
<h1 class="font-weight-bold text-right">Individual Packing Slip</h1>
<h3 class="text-right">Order Number: {{orderid}}</h3>
</div>
</div>
<div class="row mb-2" id="id_addresses">
<div class="col">
<div class="row">
<div class="col-3">
<p class="pt-2 pb-2 pl-2 pr-2 bg-dark text-white font-weight-bold text-uppercase">Bill To:</p>
</div>
<div class="col">
<p>{{queryBillingAddress.Name}}<br>{{queryBillingAddress.Contact}}<br>{{queryBillingAddress.Address1}}</p>
</div>
</div>
</div>
<div class="col">
<div class="row">
<div class="col-3">
<p class="pt-2 pb-2 pl-2 pr-2 bg-dark text-light font-weight-bold text-uppercase">Ship To:</p>
</div>
<div class="col"></div>
</div>
</div>
</div>
<div class="row mb-2">
<div class="col">
<div class="table-responsive">
<table class="table">
<thead class="thead-dark">
<tr>
<th scope="col">Ship Via</th>
<th scope="col">PO Number</th>
<th scope="col">FOB</th>
<th scope="col">Date</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>{{queryInvoice.PurchaseOrderNumber}}</td>
<td>Otto</td>
<td>@mdo</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="row">
<div class="col"></div>
</div>
</div>
</main>
</div><!-- End of Invoice Data -->
</div> <!-- End of Array Repeat -->
Should be simple, but I don’t understand why in the repeat it will show 4 times for each item instead of 1?
Any insight?
Community Page
Last updated:
Last updated: