ayuda con edicion en xbrowse
Posted: Sat Aug 12, 2023 8:16 pm
Estimados, nunca he tenido necesidad de editar directamente en una celda en xbrowse, pero ahora es el día, todo bien con este código, es un browse de un array, el caso es que, si yo estoy editando un valor en una celda, si en ese momento, doy el foco a otra app, por ejemplo, una tabla en excel, de la cual voy a tomar un valor, que necesito en el browse, lo que hasta el momento he ingresado el get se pierde cuando esta celda en edicion pierde el foco momentaneamente, espero haberme explicado correctamente.
aca estoy ingresando un dato (la celda esta en edición), me acuedo que lo tengo en excel, con alt+tab me cambio a excel, copio lo que me interesa poner en la celda y cuando regreso ya lo que he escrito en la celda desapareció, porque se me olvido dar enter para confirmar el ingreso..., como puedo evitar esto, y que lo que he escrito este guardado en la celda
aca se perdio loi que tenia ingresado..., aca he notado que con ctrl
- Code: Select all Expand view
...
REDEFINE XBROWSE oBrwGara ARRAY aGara;
ID 101 OF PAGE4;
COLUMNS 1, 2, 3, 4, 5;
HEADERS "Descripción del articulo", "Marca", "Serie", "Modelo", "Color";
SIZES 250, 100, 100, 100, 80;
FONT oFontB WHEN nClieNum > 0 FASTEDIT
WITH OBJECT oBrwGara
:MyConfig( NIL, NIL, TRUE, NIL, FALSE, TRUE )
:lHScroll := FALSE
:nHeaderHeight := 36
:nRecSelWidth := 35 * IIf( Type( "nScale" ) != "U" .and. nScale > 0, nScale, 1 )
:lEdit := TRUE
:nEditTypes := EDIT_GET
:nFreeze := 4
:aCols[ 1 ]:cEditPicture := "@!"
:aCols[ 2 ]:cEditPicture := "@!"
:aCols[ 3 ]:cEditPicture := "@!"
:aCols[ 4 ]:cEditPicture := "@!"
:aCols[ 5 ]:cEditPicture := "@!"
:bClrEdits := {|| { CLR_HRED, CLR_YELLOW } }
:bClrStd := {|| IIf( oBrwGara:KeyNo() % 2 == 0, { CLR_BLACK, RGB( 198, 255, 198 ) }, { CLR_BLACK, RGB( 232, 255, 232 ) } ) }
END
...
aca estoy ingresando un dato (la celda esta en edición), me acuedo que lo tengo en excel, con alt+tab me cambio a excel, copio lo que me interesa poner en la celda y cuando regreso ya lo que he escrito en la celda desapareció, porque se me olvido dar enter para confirmar el ingreso..., como puedo evitar esto, y que lo que he escrito este guardado en la celda
aca se perdio loi que tenia ingresado..., aca he notado que con ctrl