Hi i need help on the above statement. The above attribute above hides all the button on a repeated table but I want the button to show if the no data on a roll where amountPaid has no data and hides on rolls where there is data.
Please help
Hi i need help on the above statement. The above attribute above hides all the button on a repeated table but I want the button to show if the no data on a roll where amountPaid has no data and hides on rolls where there is data.
Please help
If you want to show the button in table rows where amountPaid is empty, add:
dmx-show=“!amountPaid”
This doesn’t give the result that i want.
May be I can explain in depth. I have a table called apartBokings and a subtable called apartPayments.
Once data is inserted on the apartBooking Table . I have a list of bookings on the repeated table. with a button Add Payment. So when i add the payment to a specific non paid booking I want the button to not show. and payment records will inserted to the subtable of apartPayment which has the reference ID of the apartBooking.
That is to say the Button will be hidden if the we have data in apartPayment for a speific booking and will shown if there no data from a specific booking.
I don't quite understand what are you trying to achieve on your page.
Maybe explain this with some example of the code you have on the page and in more details.

on the above screen shoot i want the "Add Payment" to only shown on the highlighted row. The highlighted row has no payment data in the apartPayment table like the other above rows
<div class="row">
<div class="table-responsive">
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th>Apartment Name</th>
<th>Customer Name</th>
<th>Check-In Date</th>
<th>Check-Out Date</th>
<th>Apartment Price</th>
<th>Contract Month</th>
<th scope="row">Action</th>
</tr>
</thead>
<tbody is="dmx-repeat"
dmx-generator="bs5table"
dmx-bind:repeat="serverconnectApartBooking.data.queryApartBooking"
id="tableRepeat2">
<tr>
<td dmx-text="apartmentName"></td>
<td dmx-text="customerName"></td>
<td dmx-text="arrivalDate.toDate().formatDate('dd-MM-yyyy')"></td>
<td dmx-text="departureDate.toDate().formatDate('dd-MM-yyyy')"></td>
<td dmx-text="apartmentPrice.toNumber().formatCurrency('TShs', '.', ',', 2)"></td>
<td dmx-text="contractMonth"></td>
<td>
<button id="btnAddApartPayment"
class="btn bg-primary text-light btn-sm"
dmx-on:click="modalAddApartPayment.show();data_detailApartBooking.select(apartBookingID)">
Add Payment
</button>
<button id="btnViewApartPayment"
class="btn btn-info btn-sm text-light"
dmx-on:click="browserApartPayments.goto('customer-apartment-payments.php?filter='+apartBookingID)">
View
</button>
</td>
</tr>
</tbody>
</table>
</div>
</div>
You have to make sure the query queryApartBooking has the information you need in the results. After a payment is added you refresh the list.