halepic Posted February 12, 2009 Posted February 12, 2009 Is there a function or script available to turn a field off once the count gets to zero? I have a table that has four fields, I have the counting and subtraction working, except that the end user is able to assign keys even after all of the keys have been checked out. What I would like to find out is if there is a script or function that would turn the field off and alert the user to order more keys. Thanks for any help. Hal
aldipalo Posted February 12, 2009 Posted February 12, 2009 (edited) Welcome to the forum. Is this on a layout or a portal within the layout. Let's say it's a portal. Set the fields to a button and create a script that checks the count and if count = 0 exit script. If(Countfield = 0) Show Custom Dialog(Notice; "No more keys available") Exit Script endif Go To Field(Field1) This is a quick and dirty script. If you need more help let us know. hth ******************************************* I had some time so I put this example together for you. I hope it takes you in the right direction. GTRR_Test.zip Edited February 13, 2009 by Guest
halepic Posted February 13, 2009 Author Posted February 13, 2009 Thank you for the feedback, it was very helpful.
Recommended Posts
This topic is 5763 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