I have a table that lists balances based on an a selected input. Two cells on the table are calculated fields using values from the other columns of each row. The server action includes two queries that calculate three sums (load_total, ordered_total, and invoiced_total). When the result for those sums come back with no results, the calculated fields display “invalid amount” as expected. However, the cells containing the sums still displays the previous values displayed when they should be “no result”. How can I have NO RESULT or $0.00 displayed if no result was found in the server action queries?
I’m somewhat new to Wappler so please provide details instructions. Thanks so much for your help!
Yes. For instance, the values displayed for load total, ordered total, and invoiced total in the uploaded image are the correct values for the previous input. There should be no values for the input of F03E16.
Please try adding a key in the repeat element. In your case this is the tbody element. Select an unique ID from your repeat region there - such as record ID.
This should fix your issue.
My table was created using BS4 table generator and I don’t see a repeat region where I can select a unique ID. Can you please explain in more detail? Thanks.
Yes, in App Structure you will see the table. Expand it and you will see the repeat region, which is applied on tbody element.
When you click it, you will see the repeat properties.
I’m sorry. I gave you the wrong info. The table does not have a repeat. The sums and calculated values were just added into the table cells using dynamic attributes (value) picker.