requestfocus bug?

Discuss all problems you have with Servoy here. It might help to mention the Servoy version and Operating System version you are using

requestfocus bug?

Postby Harjo » Wed Jun 11, 2003 4:06 pm

I have the following method:
elements.adres.requestFocus();

When switching from Designer to browse mode and than start the method manually everything works fine.
When I put the method onLoad on the same form, It won't start! Bug?
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Postby maarten » Wed Jun 11, 2003 8:15 pm

try using "onShow" method. (executes every time form shows)

"onLoad" only executes the first time it's shown after solution is started.
Maarten Berkenbosch
User avatar
maarten
 
Posts: 797
Joined: Wed Apr 23, 2003 10:52 pm
Location: Amersfoort, Netherlands

Postby Guest » Fri Jun 13, 2003 1:41 pm

Oke that works!, but try to show the same form in a dialog!
Then the onshow-method won't start.

Is there a workaround??
Guest
 

Postby maarten » Fri Jun 13, 2003 2:27 pm

What should your "onShowMethod" do?

I just tested with a simple setfield, and that works.
Maarten Berkenbosch
User avatar
maarten
 
Posts: 797
Joined: Wed Apr 23, 2003 10:52 pm
Location: Amersfoort, Netherlands

Postby Guest » Fri Jun 13, 2003 3:04 pm

I'm not quit sure what you mean!

What I want to achieve is that if I open a form in a Dialog, I want that my cursor begins in the first field.

How?
Guest
 

Postby maarten » Fri Jun 13, 2003 3:21 pm

Couple of questions:

What's the view(record/list etc..) of the form you're opening in the Dialog?
What kind of field(global, column) do you want to focus on?
In which part(header, body etc) is it positioned?
Maarten Berkenbosch
User avatar
maarten
 
Posts: 797
Joined: Wed Apr 23, 2003 10:52 pm
Location: Amersfoort, Netherlands

Postby Guest » Fri Jun 13, 2003 4:00 pm

What's the view(record/list etc..) of the form you're opening in the Dialog?

answer: View as record
What kind of field(global, column) do you want to focus on?
answer: global field called: name
In which part(header, body etc) is it positioned?

answer: In the body part!
Guest
 

Postby maarten » Fri Jun 13, 2003 4:59 pm

Seems that requestFocus doesn't work properly within FormDialog.
I've posted bugreport to dev. team.

Thanks.
Maarten Berkenbosch
User avatar
maarten
 
Posts: 797
Joined: Wed Apr 23, 2003 10:52 pm
Location: Amersfoort, Netherlands

Postby jcompagner » Thu Jul 17, 2003 11:12 am

request focus handling should be much better in builds after RC4
(every where so not only FormDialog)
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet


Return to Discuss possible Issues and Bugs

Who is online

Users browsing this forum: No registered users and 4 guests