I have a repeated table. In one of my columns there is a notice: Did your budget request get approved?
In the database the “BudgReq_ApprovedOrNot” data is stored as an integer and the values mean this:
0 == not approved
1 == approved
3 == unanswered
I’d like to display a Font Awesome Icon based on each of those. But, how can I get Wappler to say: If BudgReq_ApprovedOrNot == 0 then show “fas fa-thumbs-down”
If BudgReq_ApprovedOrNot == 1 then show “fas fa-thumbs-up”
If BudgReq_ApprovedOrNot == 3 then show fas fa-question
Now, this is a similar question… it’s part of the same table.
I also list a budget category.
In this “Budget Request” table the category of budget is defined by a number.
It is BudgReq_Budget.
In another Table I connect all the numbers to names.
i.e.
1 = Salary
2 = Savings
3 = Marketing
4 = Admin
etc.
This budget request is returning the number of BudgReq_Budget. If I’m in the repeated region, how can I connect to list the name of the budget from the other table instead of the number?
You do that in the database query - join the table there so it’s available in each row of the output already. You COULD do it on the client but makes little sense to do so.