Jump to content
Sign in to follow this  
hartmut

Can a Script be made temporarily inactive

Recommended Posts

I have a bunch of buttons that are on a layout - but there are certain conditions ( one of the buttons) that I would need the user not to be able to activate the other buttons when one button is pressed. In other words if script 4 is activated by this buttons I would like to know if script 3, 5, 6, and 7 could somehow be rendered inactive temporarily.

thanks

Dave

Share this post


Link to post
Share on other sites

If I understand your question correctly, you could store a global field or variable with the last script parameter. You can add this to the end of your scripts. Then in the beginning of your scripts for 3, 5, 6, and 7 you can check to see what the last variable was. If it wasnt script 4 then do the actions.

Share this post


Link to post
Share on other sites

Another option is the visibility trick, that simply removes the buttons from the layout conditionally:

http://www.databasepros.com/FMPro?-DB=resources.fp5&-lay=cgi&-format=list.html&-FIND=+&resource_id=DBPros000743

--sd

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  

  • Who Viewed the Topic

    1 member has viewed this topic:
    3DSteve 
×

Important Information

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