Editar sobre xbrowse Array Hash - SOLUCIONADO

Post Reply
User avatar
leandro
Posts: 958
Joined: Wed Oct 26, 2005 2:49 pm
Location: Colombia
Contact:

Editar sobre xbrowse Array Hash - SOLUCIONADO

Post by leandro »

Amigos buenas noches desde aquí para todos,

Como dice el en encabezado, requiero hacer la edición directo sobre un registro en xbrowse, lo raro es que en columna de tipo carácter funciona, pero si la edición la hago sobre un campo numérico no funciona, alguien sane en que estoy fallando.

Code: Select all


....

    oCol          = oBrwItno:AddCol()
    oCol:bStrData := {|| if(Len( aDevolu ) > 0 , aDevolu[oBrwItno:nArrayAt]["nombreproducto"] ,"" ) }
    oCol:cHeader  = "Descripción"
    oCol:nWidth   = 180
    oCol:nHeadStrAlign = AL_LEFT
    oCol:nDataStrAlign = AL_LEFT    
    oCol:oHeaderFont = oFont
    oCol:cFooter     = "TOTALES ------>"    
    oCol:oFooterFont = oFont3
    oCol:nEditType = EDIT_GET
    oCol:bOnPostEdit   = { | oCol, xVal, nKey | If( nKey == VK_RETURN, aDevolu[oBrwItno:nArrayAt]["nombreproducto"]:=xVal,) }

    oCol          = oBrwItno:AddCol()
    oCol:bStrData := {|| if(Len( aDevolu ) > 0 , aDevolu[oBrwItno:nArrayAt]["cantidad"] ,0 ) }
    oCol:cHeader  = "Cantidad"
    oCol:nWidth   = 55
    oCol:nHeadStrAlign = AL_RIGHT
    oCol:nDataStrAlign = AL_RIGHT   
    oCol:oHeaderFont = oFont
    oCol:nEditType = EDIT_GET
    oCol:bOnPostEdit   = { | oCol, xVal, nKey | If( nKey == VK_RETURN, aDevolu[oBrwItno:nArrayAt]["cantidad"]:=xVal,) }

....
 
De antemano gracielas
Last edited by leandro on Tue Oct 01, 2019 3:23 pm, edited 1 time in total.
Saludos
LEANDRO ALFONSO
SISTEMAS LYMA - BASE
Bogotá (Colombia)
[ FWH 19.09 ] [ xHarbour 1.2.3 Intl. (SimpLex) (Build 20190613) ] [ Embarcadero C++ 7.30 for Win32 ]
User avatar
acuellar
Posts: 1312
Joined: Tue Oct 28, 2008 6:26 pm
Location: Santa Cruz-Bolivia

Re: Editar sobre xbrowse Array Hash

Post by acuellar »

Leandro intente con:

Code: Select all

oCol:bEditValue:= {|| if(Len( aDevolu ) > 0 , aDevolu[oBrwItno:nArrayAt]["cantidad"] ,0 ) }
 
Saludos,

Adhemar C.
User avatar
leandro
Posts: 958
Joined: Wed Oct 26, 2005 2:49 pm
Location: Colombia
Contact:

Re: Editar sobre xbrowse Array Hash

Post by leandro »

Gracias Adhemar :D
Saludos
LEANDRO ALFONSO
SISTEMAS LYMA - BASE
Bogotá (Colombia)
[ FWH 19.09 ] [ xHarbour 1.2.3 Intl. (SimpLex) (Build 20190613) ] [ Embarcadero C++ 7.30 for Win32 ]
Post Reply