Announcement

Collapse
No announcement yet.

How to come back to grid by redir mantaining the same filter was active before

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to come back to grid by redir mantaining the same filter was active before

    Hi, I got a grid (named i.e. grid_test) with left side (Refined Search) where user can choose product category filter.
    If he use it to filter product then he can do other things .
    At the end of these possible things I do a redir to grid but it's not connected to filter activated previously .
    In this case user has to start from the beginning to filter his data and go trough the path did before.
    Question: is it possible in some way to come back using redir to previous grid without showing to user the initial situation not filtered ?

  • #2
    Can you convert the redir to a sc generated link?
    Refined searches will persist when coming back from an app called via a link.

    Comment


    • #3
      I'm doing test using these macro under on_click events just to understand if they can be useful but nothing happens...;-(

      $save_current_where = {sc_where_current};
      echo $save_current_where;

      $save_current_filter = {sc_where_filter};
      echo $save_current_filter;

      ERRORS
      Error
      Undefined property: grid_TEST_BDGT_apl::$sc_where_atual
      Undefined property: grid_TEST_BDGT_apl::$sc_where_filtro

      Comment


      • #4
        Now I test them under PHP button and something appears...

        where ((CATEGORIA IN ('BDAG; ;BD Aghi')))

        The problem remains becouse the redir then has not possibility to insert sql

        Comment

        Working...
        X