Slobey Posted November 4, 2004 Share Posted November 4, 2004 Hi, I am trying to set a field with the window mode so my users won't enter find criteria in browse mode and visa versa. I set a calculation that stated the following: Case( Get(WindowMode)=0;"BROWSE"; Get(WindowMode)=2;"PREVIEW"; "FIND") It shows the proper message in browse and preview but nothing in find. Am I doing something wrong? how can I fix this? Thanks in advance Link to comment Share on other sites More sharing options...
-Queue- Posted November 4, 2004 Share Posted November 4, 2004 Calculations don't evaluate in Find Mode. Why not just test for which mode you're in before running crucial scripts or create a separate find layout, so it's obvious which mode you're in? Link to comment Share on other sites More sharing options...
Slobey Posted November 5, 2004 Author Share Posted November 5, 2004 Thanks for responding Queue. I am confused though. If calcs don't work in find mode then why does the windowmode script step say that it returns a 1 if in find mode? I thought about the separate layout but I was hoping that 7 would make it possible to avoid that. Link to comment Share on other sites More sharing options...
-Queue- Posted November 5, 2004 Share Posted November 5, 2004 It works in a script step, but not in a calculated field. You can test If [Get(WindowMode) = 1] in a script, but calculations only evaluate in Browse and Preview Modes. Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 7112 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now