Filter without displaying in search box or do on tableserver based on get parameter

Filter without displaying in search box or do on tableserver based on get parameter

YoDavishYoDavish Posts: 123Questions: 46Answers: 3

I have editor v 1.9.6.

Is ther a way to filter the datatables data such that if we pass in the url for example:

http://myDatatables.php?number=1234&accountName=place1

the "accountName" will filter for "place1" but the value is not displayed in the search filter

The other option I was thinking was just getting the url parameter and performing the query based off that value. I was hoping to find former options first. Any suggestions?

This question has an accepted answers - jump to answer

Answers

  • YoDavishYoDavish Posts: 123Questions: 46Answers: 3

    I meant to say perfom the query off the table server page.

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin
    Answer ✓

    Assuming myDataTables.php is an Ajax source and you are using our Editor PHP libraries in it:

    ->where('accountName', $_GET['accountName'])
    

    Is all that is required.

    If those assumptions are not correct, can you link to a page showing the issue or show me the source for what you are using please?

    Allan

Sign In or Register to comment.