Announcement

Collapse
No announcement yet.

Search life

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

  • Search life

    I'd like to have a search setting remain in effect until it is cleared. I have a grid and the search is working great. If I leave the grid and return I want the search to still be in effect. Possible?

  • #2
    I am trying to replicate, but having a few issues..
    But you can set the values of the search field using the event in the search configuration.
    {Fieldname} = 'TEST';

    Comment


    • #3
      Originally posted by Kdriscoll View Post
      I am trying to replicate, but having a few issues..
      But you can set the values of the search field using the event in the search configuration.
      {Fieldname} = 'TEST';
      Thanks for the reply. I'm a little confused still though. Could you elaborate?

      Comment


      • #4
        Go to the search tab and select the events submenu. There you have a few events: scriptinit, refresh, save and validate. In these events you have access to your (search) fields. So use onvalidate to save the settings into a global variable like [glob_myfield]={myfield] and the refresh / init {myfield}=[glob_myfield]. If you need to fill fields initially you can use the init .
        Albert Drent
        aducom software netherlands
        scriptcase partner, reseller, support and (turn-key) development
        www.scriptcase.eu / www.scriptcase.nl

        Comment


        • #5
          Originally posted by aducom View Post
          Go to the search tab and select the events submenu. There you have a few events: scriptinit, refresh, save and validate. In these events you have access to your (search) fields. So use onvalidate to save the settings into a global variable like [glob_myfield]={myfield] and the refresh / init {myfield}=[glob_myfield]. If you need to fill fields initially you can use the init .
          Well it sort of works. I used init and validate as you suggested. When I exit the application and then return to it, the search variables are there but are not applied when displaying the grid. I have to go into search and click on search again. What I had in mind was to exit the grid app and return to it later with the display identical as it was when I previously exited.

          Comment

          Working...
          X