PUDIERA SER DE ESTE TIPO
EL PROBLEMA ES QUE NO ME ENTRA EN EDICION DE LA PRIMERA COLUMNA .
ES DECIR CUANDO Nk VALE 1 NO EJECUTA :EDIT()
¿QUE HAGO MAL?
UN SALUDO Y GRACIAS
METHOD EditLinea(nLin)
local nK := 1
local aDatosLin := {}
nLin := ::oBrowse:nArrayAt
//--- Copio datos actuales
aDatosLin := ::oBrowse:GetRow()
//--- Bucle de Edicion -----
do while nK <= len(::oBrowse:aCols)
with object ::oBrowse:aCols[nK]
if :nEditType != beNONE
if :Edit()
//--- Controles
do case
case nK == 1 //Codigo
if :oGridEdit:Value == 0 .or. :oGridEdit:Value >
len(::aArtic)
MsgAlert("Codigo inexistente","!!! Atencion !!!")
loop
else
::aPrecios := ::aArtic[:oGridEdit:Value,3]
endif
case nK == 7
if :oGridEdit:Value == "N"
if MsgNoYes("Desea abandonar la edicion?","Por
favor...")
for nN := 1 to len(aDatosLin)
oSender:oParent:SetValue(nN,aDatosLin[nN])
//Recupero valores originales
next nN
else
nK := 1
loop
endif
endif
endcase
endif
endif
end with
::CalLinea(nLin)
nK ++
enddo
RETURN NIL
In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
QUIERO HACER UN METODO QUE CONTROLE LA EDICION DE LAS COLUMNAS DE UN BROWSE
- ignacio
- Site Admin
- Mensajes: 9441
- Registrado: Lun Abr 06, 2015 8:00 pm
- Ubicación: Madrid, Spain
- Contactar:
QUIERO HACER UN METODO QUE CONTROLE LA EDICION DE LAS COLUMNAS DE UN BROWSE
BiSoft,
Es tremendamente complicado seguir su código, lo siento. Le ruego que nos
mande un pequeño ejemplo que muestre su problema.
Un saludo
--
Ignacio Ortiz de Zúñiga
Xailer support / Soporte de Xailer
http://www.xailer.com
http://www.xailer.info
"BiSoft" <bisoft@bisoft.es> escribió en el mensaje
news:4981bbc1$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> PUDIERA SER DE ESTE TIPO
>
> EL PROBLEMA ES QUE NO ME ENTRA EN EDICION DE LA PRIMERA COLUMNA .
> ES DECIR CUANDO Nk VALE 1 NO EJECUTA :EDIT()
>
> ¿QUE HAGO MAL?
>
> UN SALUDO Y GRACIAS
>
>
> METHOD EditLinea(nLin)
> local nK := 1
> local aDatosLin := {}
>
> nLin := ::oBrowse:nArrayAt
>
> //--- Copio datos actuales
> aDatosLin := ::oBrowse:GetRow()
>
> //--- Bucle de Edicion -----
> do while nK <= len(::oBrowse:aCols)
> with object ::oBrowse:aCols[nK]
> if :nEditType != beNONE
> if :Edit()
> //--- Controles
> do case
> case nK == 1 //Codigo
> if :oGridEdit:Value == 0 .or. :oGridEdit:Value >
> len(::aArtic)
> MsgAlert("Codigo inexistente","!!! Atencion !!!")
> loop
> else
> ::aPrecios := ::aArtic[:oGridEdit:Value,3]
> endif
> case nK == 7
> if :oGridEdit:Value == "N"
> if MsgNoYes("Desea abandonar la edicion?","Por
> favor...")
> for nN := 1 to len(aDatosLin)
> oSender:oParent:SetValue(nN,aDatosLin[nN])
> //Recupero valores originales
> next nN
> else
> nK := 1
> loop
> endif
> endif
> endcase
> endif
> endif
> end with
> ::CalLinea(nLin)
> nK ++
> enddo
>
> RETURN NIL
>
Es tremendamente complicado seguir su código, lo siento. Le ruego que nos
mande un pequeño ejemplo que muestre su problema.
Un saludo
--
Ignacio Ortiz de Zúñiga
Xailer support / Soporte de Xailer
http://www.xailer.com
http://www.xailer.info
"BiSoft" <bisoft@bisoft.es> escribió en el mensaje
news:4981bbc1$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> PUDIERA SER DE ESTE TIPO
>
> EL PROBLEMA ES QUE NO ME ENTRA EN EDICION DE LA PRIMERA COLUMNA .
> ES DECIR CUANDO Nk VALE 1 NO EJECUTA :EDIT()
>
> ¿QUE HAGO MAL?
>
> UN SALUDO Y GRACIAS
>
>
> METHOD EditLinea(nLin)
> local nK := 1
> local aDatosLin := {}
>
> nLin := ::oBrowse:nArrayAt
>
> //--- Copio datos actuales
> aDatosLin := ::oBrowse:GetRow()
>
> //--- Bucle de Edicion -----
> do while nK <= len(::oBrowse:aCols)
> with object ::oBrowse:aCols[nK]
> if :nEditType != beNONE
> if :Edit()
> //--- Controles
> do case
> case nK == 1 //Codigo
> if :oGridEdit:Value == 0 .or. :oGridEdit:Value >
> len(::aArtic)
> MsgAlert("Codigo inexistente","!!! Atencion !!!")
> loop
> else
> ::aPrecios := ::aArtic[:oGridEdit:Value,3]
> endif
> case nK == 7
> if :oGridEdit:Value == "N"
> if MsgNoYes("Desea abandonar la edicion?","Por
> favor...")
> for nN := 1 to len(aDatosLin)
> oSender:oParent:SetValue(nN,aDatosLin[nN])
> //Recupero valores originales
> next nN
> else
> nK := 1
> loop
> endif
> endif
> endcase
> endif
> endif
> end with
> ::CalLinea(nLin)
> nK ++
> enddo
>
> RETURN NIL
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com