Jump to content
Sign in to follow this  
Slobey

windowmode

Recommended Posts

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

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

By using this site, you agree to our Terms of Use.