1 Reply Latest reply on Apr 27, 2011 8:55 AM by philmodjunk

    Global storage field query

    revmk

      Title

      Global storage field query

      Post

      Hi all,

      I'm trying to create a search box for many fields.  Easy enough, but I've hit a little snag.  As I can not have an unbound text field I've set a global storage field.

      The problem I can see with this is that if the field is persistant every user will pick up the last search which is not helpful.

      Can anyone think of a way around this?

      Thanks

        • 1. Re: Global storage field query
          philmodjunk

          If these are users accessing a hosted database at the same time, they'll each get their own "virtual copy" of the global field and thus won't see each other's data in this field. In a hosted database, each client's edits of a global field are kept separate and their edits are not retained, the next time they open the file, they'll see the original "default" value of the field.

          Any use you make of the field as developer in single user mode, will persist, so clean up after yourself by clearing the field before putting it up on the server. If this is a single user file or you don't want users to see text in this field each time they return to it in the same session, you can have your scripts either clear the field just before the user brings up the layout/window where you have the global field or you can clear it after performing the find.

          I prefer to clear the field just before. That way, I can add a "modify find" button that takes the user back for a new find with the original criteria unmodified. If they click the "find" button, the script clears the field before they see it.