FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Posible Bug fw2104 al refrescar dialogos
Posts: 1816
Joined: Wed Oct 26, 2005 02:49 PM
Posible Bug fw2104 al refrescar dialogos
Posted: Wed Jun 09, 2021 02:55 PM
Buenos d铆as para todos,

En estos d铆as he estado intentando actualizar la aplicaci贸n utilizando la ultima versi贸n de fw 2104, pero resulta que tengo unos problemas al momento de refrescar la informaci贸n en algunos di谩logos, el contenido de las variables parece estar ah铆, pero no se ven al momento de hacer el update() 贸 refresh() voy a tratar de hacerme entender con esta imagen:

Cabe aclarar que con la versi贸n fwh1909 funcionaba correctamente.



El c贸digo:

Code (fw): Select all Collapse
cbArtic := 聽<|desde,dato| 
聽 聽 聽 聽 聽 聽 聽 聽 oArt:= cBusc():New(::oCnx,"articulos")
聽 聽 聽 聽 聽 聽 聽 聽 oArt:vListaPrecios := vLisPre /*PASAMOS LA LISTA DE PRECIOS A LA BUSQUEDA DE ARTICULOS*/
聽 聽 聽 聽 聽 聽 聽 聽 oArt:vDesde := desde
聽 聽 聽 聽 聽 聽 聽 聽 oArt:vDato := dato
聽 聽 聽 聽 聽 聽 聽 聽 oArt:gestiona(oDlgItm,oGart)
聽 聽 聽 聽 聽 聽 聽 聽 vlGart := oArt:hRetorna["salida"]
聽 聽 聽 聽 聽 聽 聽 聽 oSelf:hDatos["articulo"] := Completa(oArt:hRetorna["articulo"],15)
聽 聽 聽 聽 聽 聽 聽 聽 oSelf:hDatos["nombre"] := oArt:hRetorna["nombre"]
聽 聽 聽 聽 聽 聽 聽 聽 oSelf:hDatos["tipoIva"] := oArt:hRetorna["tipoIva"]
聽 聽 聽 聽 聽 聽 聽 聽 oSelf:hDatos["porIva"] := oArt:hRetorna["porIva"]
聽 聽 聽 聽 聽 聽 聽 聽 nVlUnt := Retorna_Numero(oArt:hRetorna["precio"])
聽 聽 聽 聽 聽 聽 聽 聽 oSelf:hDatos["unitario"] := nVlUnt
聽 聽 聽 聽 聽 聽 聽 聽 ::calcular()
聽 聽 聽 聽 聽 聽 聽 聽 oDlgItm:update()
聽 聽 聽 聽 聽 聽 >
...
DEFINE DIALOG oDlgItm RESOURCE "ORFACT1" OF oDlg ICON "#8001" FONT oFontItem
...
聽 聽 REDEFINE GET oGart VAR oSelf:hDatos["articulo"] ID 139 OF oDlgItm UPDATE BITMAP "Bbusc" PICTURE "@N";
聽 聽 聽 聽 聽 聽 ACTION EVAL(cbArtic,.T.) VALID (EVAL(cbArtic,.F.,oSelf:hDatos["articulo"]),vlGart) 
...
ACTIVATE DIALOG oDlgItm 
...
Saludos
LEANDRO AREVALO
Bogot谩 (Colombia)
https://hymlyma.com
https://hymplus.com/
leandroalfonso111@gmail.com
leandroalfonso111@hotmail.com

[ Turbo Incremental Link64 6.98 Embarcadero 7.70 ] [ FiveWin 25.01 ] [ xHarbour 64 bits) ]
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Posible Bug fw2104 al refrescar dialogos
Posted: Wed Jun 09, 2021 03:21 PM

Leandro,

Puedes poner una imagen de antes y despu茅s ?

Se dibujan bien pero el contenido no es correcto ?

Est谩s usando DBFs, SQL, ... ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1816
Joined: Wed Oct 26, 2005 02:49 PM
Re: Posible Bug fw2104 al refrescar dialogos
Posted: Wed Jun 09, 2021 05:26 PM
Antonio gracias por responder,
Lo hago con conexi贸n a mysql, mediante ADO
Code (fw): Select all Collapse
//CREAMOS UNA CONEXION 
cCnd := cadenaconexion() 
oCnFtr := FW_OpenAdoConnection( cCnd )


1. Antes de abrir dialogo de selecci贸n


2. Abrimos el dialogo de selecci贸n


3. Deber铆a refrescarse la informaci贸n en los GET's
Saludos
LEANDRO AREVALO
Bogot谩 (Colombia)
https://hymlyma.com
https://hymplus.com/
leandroalfonso111@gmail.com
leandroalfonso111@hotmail.com

[ Turbo Incremental Link64 6.98 Embarcadero 7.70 ] [ FiveWin 25.01 ] [ xHarbour 64 bits) ]
Posts: 1816
Joined: Wed Oct 26, 2005 02:49 PM
Re: Posible Bug fw2104 al refrescar dialogos
Posted: Wed Jun 16, 2021 09:04 PM
Buenas tardes para todos

Bueno parece que encontr茅 en donde esta el problema, tiene que ver con la clausula PICTURE

Code (fw): Select all Collapse
//As铆 tengo el get definido y as铆 NO funciona 
REDEFINE GET oGcel VAR oFac:hSucursal["movil"] ID 68 OF oDlgFct UPDATE

//Le agregue la clausula PICTURE y ahora si actualiza la informaci贸n
REDEFINE GET oGcel VAR oFac:hSucursal["movil"] ID 68 OF oDlgFct UPDATE PICTURE "@N"


El problema es que casi todos los GET los tengo definidos de esa manera, y no quiero tener que cambiarlos en toda la aplicaci贸n.

Hay alguna soluci贸n para eso, que no sea cambiarlos todos?

De antemano gracias
Saludos
LEANDRO AREVALO
Bogot谩 (Colombia)
https://hymlyma.com
https://hymplus.com/
leandroalfonso111@gmail.com
leandroalfonso111@hotmail.com

[ Turbo Incremental Link64 6.98 Embarcadero 7.70 ] [ FiveWin 25.01 ] [ xHarbour 64 bits) ]
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Posible Bug fw2104 al refrescar dialogos
Posted: Thu Jun 17, 2021 11:12 AM

Leandro,

Lo estamos revisando.

Muchas gracias, excelente observaci贸n

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Posible Bug fw2104 al refrescar dialogos
Posted: Thu Jun 17, 2021 03:06 PM
I did not see the picture format "@N" in any documentation. I do not think that is a valid picture format and is ignored.

We checked and found no problem with controls with UPDATE clause getting updated/refreshed with the latest version also.

This is our test program:
Code (fw): Select all Collapse
#include "fivewin.ch"

function Main()

   local oDlg, oFont, aGet[ 2 ]
   local n1    := 2000
   local n2    := 3000

   SetGetColorFocus()

   DEFINE FONT oFont NAME "TAHOMA" SIZE 0,-16
   DEFINE DIALOG oDlg SIZE 400,200 PIXEL TRUEPIXEL FONT oFont TITLE FWVERSION

   @  30, 30 SAY n1 PICTURE "9,999" SIZE 100,24 PIXEL OF oDlg UPDATE
   @  60, 30 SAY n2 PICTURE "@N"    SIZE 100,24 PIXEL OF oDlg UPDATE

   @  30,150 GET n1 PICTURE "9,999" SIZE 100,24 PIXEL OF oDlg UPDATE RIGHT
   @  60,150 GET n2 PICTURE "@N"    SIZE 100,24 PIXEL OF oDlg UPDATE

   @ 110,30 BUTTON "INCRVALUES" SIZE 150,30 PIXEL OF oDlg ACTION ( ;
      n1 += 100, n2 += 150, oDlg:Update() )

   ACTIVATE DIALOG oDlg CENTERED
   RELEASE FONT oFont

return nil


We can see SAYs and GETs getting updated with new values.


You may change this program or post a small self-contained program that shows ur problem so that we can build and test at our end and provide a solution.
Regards



G. N. Rao.

Hyderabad, India

Continue the discussion