Getfocus
Paul Witmond
Hi,Does anyboy know how to set the focus on a Inputbox ?
The inputbox is working fine but the inputbox does not get the focus until the user clkicks on it.
Who has the solution ?
Thanks,
Paul
Michael Egloff
Hi Paul,just click on it, and it will have the focus.
e.g.
TextEdit.GetFromUID(pVal.Form, "ID").Click();
Paul Witmond
Hi Michael,My code :
Dim question As String
question = inputbox("a", "b", "c")
TextEdit.GetFromUID(pVal.Form, "question").Click()
The last line gives an error
I think you have a better solution for the inputbox, right ?
Regards,
Paul
Michael Egloff
Hi Paul,with VB, I'm the wrong person to ask...
What is a "inputbox"??
The click method needs an argument:
TextEdit.GetFromUID(pVal.Form, "14").Click(SwissAddonFramework.UI.Components.Item.ClickType.Regular);
Paul Witmond
Hi Michael,I want the user to enter some data in a popup and use the entered value
Regards,
Paul
Manuel Marhold
Hi,SAP does not have an inputbox.
If you want to use windows-forms (inputbox is one) in SBO, you have to do this in an STA-Thread and set the focus there, bringtofront etc.
@Michael: Inputbox is a window where a user can enter data, same behavior like the messagebox, but with a textfield for there string the user enteres.
0
Please sign in to leave a comment.
Comments
0 comments