devxlogo

Response window looses focus in DW

Response window looses focus in DW

Question:
I have a datawindow with a couple of fields where users can double-click to see a code table. The code table window is a response window. The problem is that when control returns to the field, users cannot type anything until they click on that field. If the user tabs to the next field, it behaves as if it were locked?you cannot type anything there until you first click on it.

Answer:
It sounds as though the focus has moved from the datawindow control to the window or another object on your window. In your double-clicked event, after you have opened the response window, you should issue a set focus on the datawindow.

I would suggest that you post the focus command to make sure that some other code is not interfering with the focus:

dw_1.POST FUNCTION SetFocus()
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist