replace value for any text
replace value for any text
impex09
Posts: 45Questions: 20Answers: 0
Hi, I have a table with field "Level" so in my data base this value is numeric
1 = BEGIN
2 = MEDIUM
3 = EXPERT
so, in my frontend, when the field = 1, show BEGIN, when 2 show MEDIUM, etc
thank you
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Use a render function, so in your columns option:
This could be better done (not hard-coded like this) by passing your JS an associative array and looking up the result. But see if you can get it working like this for now.
I'd suggest also reading the orthogonal data manual page as you might want to order by the
level_id
rather than alphabetically.Allan