[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Focus keep  XML
Forum Index -> Development
Author Message
mstoyanova

Power User

Joined: 26/09/2019 07:10:15
Messages: 48
Offline

How can I keep which field is on focus + data inside after refresh?
mstoyanova

Power User

Joined: 26/09/2019 07:10:15
Messages: 48
Offline

Another thing is it possible to keep focus on a field when the tab/browser is changed?
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5510
Offline

Hi,

@1st question: there is no API to receive this information.

In general: refreshing the data of a dialog does no move the focus... So if you press a button to re-load date in some fields/labels - then the focus is not moved (and still is in the button after the refresh).

If your question is related to "focus in grid/tree" and you want to explicitly pass the focus into a certain item, then use FIXGRIDList/TreeBinding.selectAndFocusItem()

@2nd question:

If you mean browser-tabs then the focus is kept by the browser.

If you mean workpage-tabs - then the focus is moved, because there is only one focus that is managed in the browser (and not an individual one per workpage-tab).

Kind regards! Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team