Hi,
In all my tables I have a field called SIGNAT 7 bytes long with keeps
packed the date and time of last disk write.
I've defined the OnGetData event to decode the contents in the form
dd/mm/yyyy hh:mm:ss and works OK. (Picture Signat1)
Now I would like to edit the field value so in the OnDataDblClick event
I've defined the following code
oSender:cPicture := "@R 99/99/9999 99:99:99"
oSender:nEditType := beGET
oSender:Edit()
I've also defined the OnEdit event to update the oGridEdit value with
the decoded string.
Then I've defined the OnPostEdit event to convert value to compressed form
and reset the picture.
oSender:cPicture := ""
oSender:nEditType := beNONE
Everything works except that after the first editing on the column it seems
that the OnGetData is never called again and that the picture is still
there because I see packed data formatted with the picture.
(Picture Signat2)
What am I doing wrong ?
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
--
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.
Browser and Picture
-
- Mensajes: 281
- Registrado: Vie Ago 04, 2006 4:58 pm
-
- Mensajes: 281
- Registrado: Vie Ago 04, 2006 4:58 pm
Browser and Picture
Il Sat, 17 Dec 2005 20:24:08 +0100, Giuseppe Bogetti ha scritto:
> Hi,
>
> In all my tables I have a field called SIGNAT 7 bytes long with keeps
> packed the date and time of last disk write.
>
> I've defined the OnGetData event to decode the contents in the form
> dd/mm/yyyy hh:mm:ss and works OK. (Picture Signat1)
>
> Now I would like to edit the field value so in the OnDataDblClick event
> I've defined the following code
>
> oSender:cPicture := "@R 99/99/9999 99:99:99"
> oSender:nEditType := beGET
> oSender:Edit()
>
> I've also defined the OnEdit event to update the oGridEdit value with
> the decoded string.
>
> Then I've defined the OnPostEdit event to convert value to compressed form
> and reset the picture.
>
> oSender:cPicture := ""
> oSender:nEditType := beNONE
>
> Everything works except that after the first editing on the column it seems
> that the OnGetData is never called again and that the picture is still
> there because I see packed data formatted with the picture.
> (Picture Signat2)
>
> What am I doing wrong ?
Never mind. I've been able to solve the problem using OnGetValue event.
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
> Hi,
>
> In all my tables I have a field called SIGNAT 7 bytes long with keeps
> packed the date and time of last disk write.
>
> I've defined the OnGetData event to decode the contents in the form
> dd/mm/yyyy hh:mm:ss and works OK. (Picture Signat1)
>
> Now I would like to edit the field value so in the OnDataDblClick event
> I've defined the following code
>
> oSender:cPicture := "@R 99/99/9999 99:99:99"
> oSender:nEditType := beGET
> oSender:Edit()
>
> I've also defined the OnEdit event to update the oGridEdit value with
> the decoded string.
>
> Then I've defined the OnPostEdit event to convert value to compressed form
> and reset the picture.
>
> oSender:cPicture := ""
> oSender:nEditType := beNONE
>
> Everything works except that after the first editing on the column it seems
> that the OnGetData is never called again and that the picture is still
> there because I see packed data formatted with the picture.
> (Picture Signat2)
>
> What am I doing wrong ?
Never mind. I've been able to solve the problem using OnGetValue event.
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
-
- Mensajes: 281
- Registrado: Vie Ago 04, 2006 4:58 pm
Browser and Picture
Il Sat, 17 Dec 2005 20:24:08 +0100, Giuseppe Bogetti ha scritto:
> Hi,
>
> In all my tables I have a field called SIGNAT 7 bytes long with keeps
> packed the date and time of last disk write.
>
> I've defined the OnGetData event to decode the contents in the form
> dd/mm/yyyy hh:mm:ss and works OK. (Picture Signat1)
>
> Now I would like to edit the field value so in the OnDataDblClick event
> I've defined the following code
>
> oSender:cPicture := "@R 99/99/9999 99:99:99"
> oSender:nEditType := beGET
> oSender:Edit()
>
> I've also defined the OnEdit event to update the oGridEdit value with
> the decoded string.
>
> Then I've defined the OnPostEdit event to convert value to compressed form
> and reset the picture.
>
> oSender:cPicture := ""
> oSender:nEditType := beNONE
>
> Everything works except that after the first editing on the column it seems
> that the OnGetData is never called again and that the picture is still
> there because I see packed data formatted with the picture.
> (Picture Signat2)
>
> What am I doing wrong ?
Never mind. I've been able to solve the problem using OnGetValue event.
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
> Hi,
>
> In all my tables I have a field called SIGNAT 7 bytes long with keeps
> packed the date and time of last disk write.
>
> I've defined the OnGetData event to decode the contents in the form
> dd/mm/yyyy hh:mm:ss and works OK. (Picture Signat1)
>
> Now I would like to edit the field value so in the OnDataDblClick event
> I've defined the following code
>
> oSender:cPicture := "@R 99/99/9999 99:99:99"
> oSender:nEditType := beGET
> oSender:Edit()
>
> I've also defined the OnEdit event to update the oGridEdit value with
> the decoded string.
>
> Then I've defined the OnPostEdit event to convert value to compressed form
> and reset the picture.
>
> oSender:cPicture := ""
> oSender:nEditType := beNONE
>
> Everything works except that after the first editing on the column it seems
> that the OnGetData is never called again and that the picture is still
> there because I see packed data formatted with the picture.
> (Picture Signat2)
>
> What am I doing wrong ?
Never mind. I've been able to solve the problem using OnGetValue event.
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy