Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

117
Views
How to use filtering in datatable server side processing joined tables?

I am trying to find a way to use filter of datatable server side processing joined tables but not working well. If you have good experience of its, Please help me.

This is column structure.

$columns = array(
    array('db' => 'date', 'dt' => 'td_date'),
    array(
        'db' => 'user_id',  'dt' => 'td_username',
        'formatter' => function ($d, $row) {
            $p_general = new General();
            $userInfo = $p_general->getValueOfAnyTable('users', 'id', '=', $d);
            $userInfo = $userInfo->results();
            return  $userInfo[0]->name;
        }
    ),
    array('db' => 'event',   'dt' => 'td_event',),
    array('db' => 'plant_UID', 'dt' => 'td_UID_text',),
    array(
        'db' => 'note', 'dt' => 'td_note',

    ),

);

This(below) is working about another fields but not working about "username".

$("#col1_filter").keyup(function() {
            var value = $("col1_filter").val();
            if (table.columns(3).search() !== value) {
                           table.columns(0).search(value).draw();
                    }
        });
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!