PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WEBDEV 2024 → returntocapture from server code
returntocapture from server code
Iniciado por noel tanti, out., 28 2011 12:39 PM - 1 resposta
Publicado em outubro, 28 2011 - 12:39 PM
Hi Everybody,

Can somebody please help.
I have an edit box and I am running a data check in the server code in an associated button. If there a way of going back to the edit field from the server code on the associated button once I find an error? I need a returntocapture from the servercode.

Thanks
Publicado em novembro, 07 2011 - 9:47 AM
Hi,

I think you can refresh the page (pagerefresh) and put your code into the browser (onload).

For example:

Button Servercode:

If Condition = True Then
Globalvar = "Field1"
PageRefresh()
END

Page Browser Onload
Switch GlobalVar
CASE "Field1"
//Code to focus your control

END