I have been meaning to ask for this for awhile but never get around to it and just end up doing it my local SF source then forgetting about it until the next time I update . My users are migrating from a FPW app and really love the keyboard, so in trying to keep the native's happy I have my browse dialogs set up as follows I have the search key set to keys.enter and the setfocustoresultsaftersearch property to true and have added code below to the BD source to handle the lv.results key down
The idea is that a user can enter their search criteria hit enter, the results come up, and then they arrow down to the correct record, hit enter and the BD copy's data and closes form. Setting both the search and accept key to enter will not work as the search would evaluate first so it would just keep searching, so what I have been doing is trapping the Lvresults key down event and if enter copy data and close form as below.
I'm sure you guys would want to add a property to turn this on/off and what not but if you could add this I'd sure be happy about it.
Thanks Paul
One of is misssing something I currently have my BD set up with the search key being enter set results to focus = true and accept key to enter. with that set up the user would
looak at code below and you will see what i mean,
CopyDataAndCloseForm()
DialogResult = System.Windows.Forms.DialogResult.Cancel
Hey Paul.
Have you tried setting different keys to each of this actions?
That would work but not how my user's want it to work. I have tried to do it with all types of combination's with the browse dialog but it is not really doable.
My users want to use the enter key for both the search and accept. So asigning the say F2 key to the accept button is not what they want they want to be able to do, they wish to do the following
In other word's the Results List View would just respond to the enter key the same way it does to a double click.
In my foxpro system the users enter their search criteria hit enter and then another modal picklist form pops up and they arrow through the results and then hit enter wich closes both the modal results form and the underlying search form and leaves them on the record they were looking for in the particular edit screen. So I am trying to emulate that process of type first name "john" hit tab key type last name "do" hit enter set n results arrow to john doe's record hit enter form closes and I am on john does employee maintence form.
Hope that makes sence
And it all make sense to me, it looks like a very logic and direct approach to navigate in the Dialog Browser.