Results 1 to 2 of 2

Thread: Accessing the backend filter values

  1. #1
    User
    Join Date
    04-10-11.
    Posts
    162

    Default Accessing the backend filter values

    Hi,

    i'm writing a custom export function for one of my backend records lists. I need to be able to get the values of the filter so that I export the records that are currently on display only.

    How can I get the value of the filter fields?

    Thanks

  2. #2
    Experienced user
    Join Date
    06-10-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default Re: Accessing the backend filter values

    They are stored in the session, e.g.

    Code:
    $session = $this->Session->getData();
    $search = $session['search'];
    $sorting = $session['sorting'];
    $filters = $session['filter'];
    These will then contain the search array, sorting array and filter array. You can inspect the structure with print_r();

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •