on 04-19-2010 1:55 PM
Hello together,
I want to set Focus on a given input field in my view. To do this I have done foolowing steps:
- I have used the hook method wdDoModifyView
- in this method I have made this call view.getInspParam1_0ViewItem().setFocus(); (InspParam1_0 is the iD of my input field)
Unfortunatelly no focus was set during program execution. I have seen this thread in mobile forum
but I haven't understood all purposes in this thread.
Perhaps has anyone other suggestions?
Regards
Waldemar
I commented in that thread.
So all I can say is that it is true from my experience that using the setFocus in wdDoModify does not work at least for the OCA MI Client as far as SP03.
I never checked afterwards if this was fixed
But if you are using SP08\SP09 and it still doesn't work then you need to do one of the suggestions mentioned in the thread.
You need to trigger the setFocus method after all the objects have been rendered....
1)
The suggestion of using a triggered event or action by button press or FN key would work.
2)
In the application I support it had to be done from the previous View that called the View with the input control after the firePlug method was called that way to the user, the setFocus was done automatically, but the programming logic is messy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.