I have a UI where all the entry fields have a bound indicator field on the "Set Focus" property. If the data is invalid I move *On to the bound field and redisplay the UI but the field in error does not receive focus. All the fields are defined the same way and none of them receive focus as expected.
Any ideas?
.
.
Bound "Set Focus" not working
-
- Profound User
- Posts: 30
- Joined: Mon Jun 22, 2020 1:48 pm
- First Name: Rich
- Last Name: Dotson
- Company Name: MTD Products
- State / Province: Ohio
- Country: United States
- Contact:
Bound "Set Focus" not working
- Attachments
-
- pui.png (32.99 KiB) Viewed 1617 times
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: Bound "Set Focus" not working
Run the screen so that it attempts to set focus like you want it to. When it fails and you're seeing the screen with focus in the wrong place, hit Ctrl-F9 to create a dump of the screen.
Post that dump here. This will give us complete information on what's happening.
Post that dump here. This will give us complete information on what's happening.
-
- Profound User
- Posts: 30
- Joined: Mon Jun 22, 2020 1:48 pm
- First Name: Rich
- Last Name: Dotson
- Company Name: MTD Products
- State / Province: Ohio
- Country: United States
- Contact:
Re: Bound "Set Focus" not working
Attached is the downloaded JSON. I was expecting the uiOnlineOrder field to have focus.
The RPGLE code setting the bound field value is: focusOnline = *On;
.
The RPGLE code setting the bound field value is: focusOnline = *On;
.
- Attachments
-
- json.txt
- (62.29 KiB) Downloaded 390 times
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: Bound "Set Focus" not working
I tried your screen, and focus seems to be going into the "Online Order" field just as you would expect.
You are loading a number of external javascript and css files that I don't have. Perhaps one of them is changing the focus... but without them, focus goes exactly where you say it should.
You are loading a number of external javascript and css files that I don't have. Perhaps one of them is changing the focus... but without them, focus goes exactly where you say it should.
-
- Profound User
- Posts: 30
- Joined: Mon Jun 22, 2020 1:48 pm
- First Name: Rich
- Last Name: Dotson
- Company Name: MTD Products
- State / Province: Ohio
- Country: United States
- Contact:
Re: Bound "Set Focus" not working
It's good to know that I have the fields setup correctly. I am using a custom function to enhance the display of my "alert" error messages. I'll research the css/js for that function to see if it's affecting the focus in some way.
Thanks!
Thanks!
Who is online
Users browsing this forum: No registered users and 2 guests