Microquest Posted February 28, 2005 Share Posted February 28, 2005 Is there a way to disable Enter Key? If my users hit the Enter Key rather than the "Perform Find" button, undesired results follow: rather than switch Layouts, they stay in the "Find" Layout in the Browse mode where they are able to modify data. Link to comment Share on other sites More sharing options...
-Queue- Posted February 28, 2005 Share Posted February 28, 2005 No, but you can put them in a script and pause it, then format your Perform Find button to merely Resume the script, which can either call your Perform Find sub-script or contain the remainder of your steps. Then pressing Enter or clicking the button will perform the same function. Link to comment Share on other sites More sharing options...
Microquest Posted February 28, 2005 Author Share Posted February 28, 2005 The script is started and then paused. If user hits Enter Key once, cool If user hits Enter Key again, we're back to same problem. Link to comment Share on other sites More sharing options...
comment Posted February 28, 2005 Share Posted February 28, 2005 Hm... Perhaps you could do something like this: Enter Find Mode Loop Pause Script End Loop Then make another script with the rest of the steps, and attach this to the button? Link to comment Share on other sites More sharing options...
-Queue- Posted February 28, 2005 Share Posted February 28, 2005 If your script has no more pauses, then it should not matter whether or not a user presses Enter twice. The script should perform the find and go to the desired layout, once it is resumed. Link to comment Share on other sites More sharing options...
Microquest Posted March 1, 2005 Author Share Posted March 1, 2005 -Queue- Good point, great solution, thank you!, it works.... but... there are other script buttons on the layout, and they are unable to be performed since another script is paused. Link to comment Share on other sites More sharing options...
Microquest Posted March 1, 2005 Author Share Posted March 1, 2005 I suppose I could move those script buttons to another page.... Link to comment Share on other sites More sharing options...
comment Posted March 1, 2005 Share Posted March 1, 2005 Buttons can be programmed to Exit/Halt a script in progress. Link to comment Share on other sites More sharing options...
Microquest Posted March 1, 2005 Author Share Posted March 1, 2005 hmmmm....... Link to comment Share on other sites More sharing options...
stanley Posted March 1, 2005 Share Posted March 1, 2005 Mark: You should consider building more layouts, and sending the user to a layout where it is clear what they can and can not do (i.e., if they're in the middle of a find, don't have loads of buttons sitting there which are effectively useless) and then return the user to a more suitable layout at the end of the function. It might seem to be a headache for you now, but it's better than the endless headache of having to deal with confused and angry users later... -Stanley Link to comment Share on other sites More sharing options...
Microquest Posted March 1, 2005 Author Share Posted March 1, 2005 That worked! Problem solved. Thanks to you both! Link to comment Share on other sites More sharing options...
Microquest Posted March 1, 2005 Author Share Posted March 1, 2005 Thanks for input Stanley, we have a good solution to the issue. The Enter Key is effectively running the scripts I want and the other Script Buttons halt the "paused script" and run as they should. I'm very happy. Thanks again all. Link to comment Share on other sites More sharing options...
AlanB Posted March 1, 2005 Share Posted March 1, 2005 If I could, I'd like to add my 2 cents worth. Within all my "find" type scripts I construct something like the following: If ["Status(CurrentMode)=1"] Perform Find [Replace Found Set] Else Enter Find Mode [Pause] Perform Find[Replace Found Set] Endif I think that this approach works best (for me) I can provide my users complete functionality, without them even knowing that they are within script controil. Alan Barker Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6602 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