Page 1 of 1

Position Cursor for fields within a TabPanel not working?

Posted: Wed May 23, 2012 12:07 pm
by bruceanthony
The Set Focus works for fields outside of a Tab Panel but not for fields within a Tab Panel.

Can set focus be make to work for fields within a TabPanel?

Re: Position Cursor for fields within a TabPanel not working?

Posted: Tue May 29, 2012 9:28 am
by David
This seems to work properly in our testing, so long as the field in question is in the tab which is active when the screen displays.

Is your field in one of the non-active tabs when the screen displays?

Re: Position Cursor for fields within a TabPanel not working?

Posted: Tue May 29, 2012 10:36 am
by bruceanthony
I assure you that the fields in question are unique and reside in the active panel. After further research I see that my issue is similar to a May 8, 2009 posting that was never resolved. Here is the post:

subject: set focus on a tab panel.

We have created a few screens with all input fields (textboxes) contained within a tab panel. When the screen displays, focus is set to one of the buttons outside the tab panel. Even if we set the "set focus" property to true on one of the textbox fields, initial focus remains with the first button outside the tab panel.

If we don't use a tab panel, focus is automatically set to the first textbox field on the screen and the "set focus" property works fine.

Re: Position Cursor for fields within a TabPanel not working?

Posted: Tue May 29, 2012 10:52 am
by David
I see -- thanks for confirming that.

I'm unable to recreate this using my own test programs -- it seems to work fine as long as we're dealing with the active tab. There must be something different about your screen that causes it to occur.

So, in this case, I would recommend opening an issue with technical support here:

http://www.profoundlogic.com/supptech.rpgsp

What will help very much is if you attach a screen dump file for this issue. To get one:

1. Bring up the screen in a session in Internet Explorer to where it has failed to focus on the appropriate field.

2. In IE's address bar, type the following (exactly, including case) and press Enter:

javascript: pui.downloadJSON();

You'll be prompted to download a small text file that you can attach to your support issue. Please include also a general description (i.e. what field should be focused) of the problem as well, and we'll be glad to have a look.

Re: Position Cursor for fields within a TabPanel not working?

Posted: Tue May 29, 2012 11:12 am
by bruceanthony
I am embarrassed to admit that the problem was with me in that I was using version 3.3.4 of your software. When testing with version with 4.0.1, I see that the focus is working. My apologies. I will be updating all versions to 4.0.2 asap. Thank you.

Re: Position Cursor for fields within a TabPanel not working?

Posted: Tue May 29, 2012 11:19 am
by David
No need for embarrassment! Glad it's working well for you now.