cancel
Showing results for 
Search instead for 
Did you mean: 

Removing focus to the action after closing the popup in CE7.1

Former Member
0 Kudos

Dear Experts,

We have a scenario, where we have a button at the bottom most of the main view and message area at the top most of the screen also we have a vertical scroll bar. On action of the button one popup will open and on action OK in the popup we are closing the popup and displaying a message in the message area and setting the focus. But after closing the popup the focus is going to the message area and lessthan a second time again focus is coming to the button which is at the bottom most. Because of this user is not focussed to the message area even we have a message.

Please suggest any method to control the focusing to the message area. Your suggestions are highly useful for us.

With Regards,

Ramesh G.

Accepted Solutions (0)

Answers (1)

Answers (1)

Qualiture
Active Contributor
0 Kudos

Hi Ramesh,

Use one of the two requestFocus() methods of the view controller:

http://help.sap.com/javadocs/nwce/ce71/wdr/com/sap/tc/webdynpro/progmodel/api/IWDViewController.html

Hope this helps,

Robin

Former Member
0 Kudos

Hi Robin,

Thanks for your reply.

I used those two methods still the focus is going to the same Action button instead of message area.

With Regards,

Ramesh G

Qualiture
Active Contributor
0 Kudos

That is strange...normally it should just do the job.

Does any altering of the button take place, after you have set the focus to the message area? That might force having the button focus

Former Member
0 Kudos

Hi Robin,

Nothing like that. I am just closing the popup window and setting focus to the message area.

One more thing is that, message are is in main DC and button is in used DC. both are in different DCs.

With Regards,

Ramesh G.

Qualiture
Active Contributor
0 Kudos

Being in two different DC's shouldn't pose a problen, since it's a UI issue anyway...

I'm afraid I don't have a rocksolid solution then. After the popup is closed, and focus is then deliberately set to the message area, it should just stay there instead of moving to another control

Former Member
0 Kudos

Hi,

When we have a vertical scroll bar in the screen, Is there any other way to go to top of the screen even user scrolls to the bottom of the screen and perform the action.

With Regards,

Ramesh G.