Consultor Eletrônico



Kbase P36390: Dynamics: How to APPLY FOCUS to a browse object without mous
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   11/08/2003
Status: Unverified

GOAL:

Dynamics: How to APPLY FOCUS to a browse object without mouse selection

GOAL:

How to apply Focus to a browse object without using the mouse.

FACT(s) (Environment):

Dynamics 2.0A

FIX:

With an updatable browse you can use "Run applyEntry in browse", but this will not work for a read only browse.

For a read only browse you can disable the other objects in the container and then re-enable them. The focus will switch to the remaining objects automatically. So if you have a container with a viewer and a browse, but the viewer always gets focus, disable the viewer in the container super procedure "InitializeObject" override and then re-enable it. i.e. after the RUN SUPER:

/* get the handle of the viewer */

RUN disableobject in h_viewer.
RUN enableObject in h_viewer.
RUN enablefields in h_viewer.