How to display name instead of id in column , if name is in different table using ajax
How to display name instead of id in column , if name is in different table using ajax
vikisoni
Posts: 3Questions: 2Answers: 0
columns: [
{ "data": "area_id" },{ "data": "downtime_reasons_id"},
{
data: null,
className: "center",
defaultContent: '<div class="btn btn-sm btn-success" id="btnn" style="padding:0px 5px;">Active</div>',
searchable: false
}
],
Below is code where downtime_reason_id i can display but i need downtime_reason name which is in another table and i am having api for that . Please help me
Edited by Colin - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.
This discussion has been closed.
Answers
I'm not following the issue, sorry. We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Cheers,
Colin