PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV 25 → Wx - Capturar Click no Table ou Looper (Browse List) para alterar registros
Wx - Capturar Click no Table ou Looper (Browse List) para alterar registros
Iniciado por adrianoboller, mar., 23 2016 10:36 PM - 3 respostas
Membro registado
3.654 mensagems
Popularité : +175 (223 votes)
Publicado em março, 23 2016 - 10:36 PM
Prezados,

Capturar Click no Table ou Looper (Browse List) para alterar registros:

// retrieve the row that was clicked
nRowNum is int=TableInfoXY(TABLE_t007_eventos,tiLineNumber,MouseXPos(),MouseYPos())
// if the row corresponds to a user
IF nRowNum>0 _AND_ nRowNum<=TABLE_t007_eventos..Occurrence THEN
// modify the user
gsAcao = "Alterar"
EventosID = TABLE_t007_eventos[nRowNum].COL_T007_eventos_ID
ExecuteProcess(BTN_Alterar_Eventos,trtClick)
ELSE
// new user
gsAcao = "Incluir"
ExecuteProcess(BTN_Incluir_Eventos,trtClick)
END


:merci:

--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 9949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.blogspot.com.br/
Publicado em abril, 29 2016 - 7:23 PM
Porque não usa o evento onclick?
Membro registado
3.654 mensagems
Popularité : +175 (223 votes)
Publicado em maio, 12 2016 - 3:03 PM
É uma técnica, existe varias maneiras de fazer.

Obrigado pela dica

:merci:

--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 9949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/
Membro registado
3.654 mensagems
Popularité : +175 (223 votes)
Publicado em julho, 27 2017 - 6:06 PM
// retrieve the row that was clicked
nRowNum is int=LooperInfoXY(LOOP_t001_clientes,tiLineNumber,MouseXPos(),MouseYPos())
// if the row corresponds to a user
IF nRowNum>0 _AND_ nRowNum<=LOOP_t001_clientes..Occurrence THEN
// modify the user
gsAcao = "Alterar"
gsID = LOOP_t001_clientes[nRowNum].ATT_AttStatic
OpenMobileWindow(WIN_update_clientes,gsID,gsAcao)
ELSE
// new user
gsAcao = "Incluir"
gsID = 0
OpenMobileWindow(WIN_update_clientes,gsID,gsAcao)
END


--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 99949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/