In clipper/xharbour we have had a 'Log' system based around a dbf opened at
application start up.
We have simple functions like LogSuccess( "my message", { some values } ) or
LogError( "my message", { some values } ) ....these use LOG-> alias
technology and work from any prg in the application.
Just trying to write same for Xailer/windows using datasets .... not finding
so easy.
If I create my datasource/dataset by calling a function in my
mainform:Initialize ... it works ok.
But when I move off to another form or use some 'TFormPanel FROM XPanel'
code from Ignacio .... my LOG workarea is OVERWRITTEN by the datasets on the
new form ... so my LogSuccess/Error functions fail.
Dont really want to be attaching & opening LOG datasource/dataset to every
form.
Without 'dataforms', what is the easy way of having global access to a
datasource/dataset. ????
Any thoughts would be appreciated.
Chris
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.
DataSource Dataset 'visible' from different forms in application ??
-
- Mensajes: 384
- Registrado: Mar May 01, 2007 5:49 pm
-
- Mensajes: 384
- Registrado: Mar May 01, 2007 5:49 pm
DataSource Dataset 'visible' from different forms in application ??
This works .... I studied APPLICATION, PRINTER etc ... I see they have no
real oParent.
I remove the oParent from my Log Class and the dbf does not get closed as I
move to different forms.
I just get an error when I exit the application as the file is not closed
nicely ..... hopefully I can fix that.
Is thi 'NO PARENT' idea the way to go.
Chris
"Chris Gillard" <chris@bluesquare.co.uk> wrote in message
news:49e89c5b$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> In clipper/xharbour we have had a 'Log' system based around a dbf opened
> at application start up.
>
> We have simple functions like LogSuccess( "my message", { some values } )
> or LogError( "my message", { some values } ) ....these use LOG-> alias
> technology and work from any prg in the application.
>
> Just trying to write same for Xailer/windows using datasets .... not
> finding so easy.
>
> If I create my datasource/dataset by calling a function in my
> mainform:Initialize ... it works ok.
>
> But when I move off to another form or use some 'TFormPanel FROM XPanel'
> code from Ignacio .... my LOG workarea is OVERWRITTEN by the datasets on
> the new form ... so my LogSuccess/Error functions fail.
>
> Dont really want to be attaching & opening LOG datasource/dataset to every
> form.
>
> Without 'dataforms', what is the easy way of having global access to a
> datasource/dataset. ????
>
> Any thoughts would be appreciated.
>
> Chris
>
>
real oParent.
I remove the oParent from my Log Class and the dbf does not get closed as I
move to different forms.
I just get an error when I exit the application as the file is not closed
nicely ..... hopefully I can fix that.
Is thi 'NO PARENT' idea the way to go.
Chris
"Chris Gillard" <chris@bluesquare.co.uk> wrote in message
news:49e89c5b$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> In clipper/xharbour we have had a 'Log' system based around a dbf opened
> at application start up.
>
> We have simple functions like LogSuccess( "my message", { some values } )
> or LogError( "my message", { some values } ) ....these use LOG-> alias
> technology and work from any prg in the application.
>
> Just trying to write same for Xailer/windows using datasets .... not
> finding so easy.
>
> If I create my datasource/dataset by calling a function in my
> mainform:Initialize ... it works ok.
>
> But when I move off to another form or use some 'TFormPanel FROM XPanel'
> code from Ignacio .... my LOG workarea is OVERWRITTEN by the datasets on
> the new form ... so my LogSuccess/Error functions fail.
>
> Dont really want to be attaching & opening LOG datasource/dataset to every
> form.
>
> Without 'dataforms', what is the easy way of having global access to a
> datasource/dataset. ????
>
> Any thoughts would be appreciated.
>
> Chris
>
>
-
- Mensajes: 384
- Registrado: Mar May 01, 2007 5:49 pm
DataSource Dataset 'visible' from different forms in application ??
This works .... I studied APPLICATION, PRINTER etc ... I see they have no
real oParent.
I remove the oParent from my Log Class and the dbf does not get closed as I
move to different forms.
I just get an error when I exit the application as the file is not closed
nicely ..... hopefully I can fix that.
Is thi 'NO PARENT' idea the way to go.
Chris
"Chris Gillard" <chris@bluesquare.co.uk> wrote in message
news:49e89c5b$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> In clipper/xharbour we have had a 'Log' system based around a dbf opened
> at application start up.
>
> We have simple functions like LogSuccess( "my message", { some values } )
> or LogError( "my message", { some values } ) ....these use LOG-> alias
> technology and work from any prg in the application.
>
> Just trying to write same for Xailer/windows using datasets .... not
> finding so easy.
>
> If I create my datasource/dataset by calling a function in my
> mainform:Initialize ... it works ok.
>
> But when I move off to another form or use some 'TFormPanel FROM XPanel'
> code from Ignacio .... my LOG workarea is OVERWRITTEN by the datasets on
> the new form ... so my LogSuccess/Error functions fail.
>
> Dont really want to be attaching & opening LOG datasource/dataset to every
> form.
>
> Without 'dataforms', what is the easy way of having global access to a
> datasource/dataset. ????
>
> Any thoughts would be appreciated.
>
> Chris
>
>
real oParent.
I remove the oParent from my Log Class and the dbf does not get closed as I
move to different forms.
I just get an error when I exit the application as the file is not closed
nicely ..... hopefully I can fix that.
Is thi 'NO PARENT' idea the way to go.
Chris
"Chris Gillard" <chris@bluesquare.co.uk> wrote in message
news:49e89c5b$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> In clipper/xharbour we have had a 'Log' system based around a dbf opened
> at application start up.
>
> We have simple functions like LogSuccess( "my message", { some values } )
> or LogError( "my message", { some values } ) ....these use LOG-> alias
> technology and work from any prg in the application.
>
> Just trying to write same for Xailer/windows using datasets .... not
> finding so easy.
>
> If I create my datasource/dataset by calling a function in my
> mainform:Initialize ... it works ok.
>
> But when I move off to another form or use some 'TFormPanel FROM XPanel'
> code from Ignacio .... my LOG workarea is OVERWRITTEN by the datasets on
> the new form ... so my LogSuccess/Error functions fail.
>
> Dont really want to be attaching & opening LOG datasource/dataset to every
> form.
>
> Without 'dataforms', what is the easy way of having global access to a
> datasource/dataset. ????
>
> Any thoughts would be appreciated.
>
> Chris
>
>
- ignacio
- Site Admin
- Mensajes: 9469
- Registrado: Lun Abr 06, 2015 8:00 pm
- Ubicación: Madrid, Spain
- Contactar:
DataSource Dataset 'visible' from different forms in application ??
Chris,
We expecto to have a special kind of form called 'Data module' for Xailer 2
that will be publish for all the application.
Right now, a datasource or a dataset can be linked to a form or not, it
depends on its oParent Value. If is linked to a form the datasets and
datasources are destroyed when the form is destroyed.
I suggest you create a new member on the global public object AppData with
the name oLog which holds an instance of a class TLog wich does all the job.
If you have any
Regards.
--
Ignacio Ortiz de Zúñiga
Xailer support / Soporte de Xailer
http://www.xailer.com
http://www.xailer.info
"Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
news:49e89c5b$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> In clipper/xharbour we have had a 'Log' system based around a dbf opened
> at application start up.
>
> We have simple functions like LogSuccess( "my message", { some values } )
> or LogError( "my message", { some values } ) ....these use LOG-> alias
> technology and work from any prg in the application.
>
> Just trying to write same for Xailer/windows using datasets .... not
> finding so easy.
>
> If I create my datasource/dataset by calling a function in my
> mainform:Initialize ... it works ok.
>
> But when I move off to another form or use some 'TFormPanel FROM XPanel'
> code from Ignacio .... my LOG workarea is OVERWRITTEN by the datasets on
> the new form ... so my LogSuccess/Error functions fail.
>
> Dont really want to be attaching & opening LOG datasource/dataset to every
> form.
>
> Without 'dataforms', what is the easy way of having global access to a
> datasource/dataset. ????
>
> Any thoughts would be appreciated.
>
> Chris
>
>
>
We expecto to have a special kind of form called 'Data module' for Xailer 2
that will be publish for all the application.
Right now, a datasource or a dataset can be linked to a form or not, it
depends on its oParent Value. If is linked to a form the datasets and
datasources are destroyed when the form is destroyed.
I suggest you create a new member on the global public object AppData with
the name oLog which holds an instance of a class TLog wich does all the job.
If you have any
Regards.
--
Ignacio Ortiz de Zúñiga
Xailer support / Soporte de Xailer
http://www.xailer.com
http://www.xailer.info
"Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
news:49e89c5b$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> In clipper/xharbour we have had a 'Log' system based around a dbf opened
> at application start up.
>
> We have simple functions like LogSuccess( "my message", { some values } )
> or LogError( "my message", { some values } ) ....these use LOG-> alias
> technology and work from any prg in the application.
>
> Just trying to write same for Xailer/windows using datasets .... not
> finding so easy.
>
> If I create my datasource/dataset by calling a function in my
> mainform:Initialize ... it works ok.
>
> But when I move off to another form or use some 'TFormPanel FROM XPanel'
> code from Ignacio .... my LOG workarea is OVERWRITTEN by the datasets on
> the new form ... so my LogSuccess/Error functions fail.
>
> Dont really want to be attaching & opening LOG datasource/dataset to every
> form.
>
> Without 'dataforms', what is the easy way of having global access to a
> datasource/dataset. ????
>
> Any thoughts would be appreciated.
>
> Chris
>
>
>
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
- ignacio
- Site Admin
- Mensajes: 9469
- Registrado: Lun Abr 06, 2015 8:00 pm
- Ubicación: Madrid, Spain
- Contactar:
DataSource Dataset 'visible' from different forms in application ??
Chris,
We expecto to have a special kind of form called 'Data module' for Xailer 2
that will be publish for all the application.
Right now, a datasource or a dataset can be linked to a form or not, it
depends on its oParent Value. If is linked to a form the datasets and
datasources are destroyed when the form is destroyed.
I suggest you create a new member on the global public object AppData with
the name oLog which holds an instance of a class TLog wich does all the job.
If you have any
Regards.
--
Ignacio Ortiz de Zúñiga
Xailer support / Soporte de Xailer
http://www.xailer.com
http://www.xailer.info
"Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
news:49e89c5b$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> In clipper/xharbour we have had a 'Log' system based around a dbf opened
> at application start up.
>
> We have simple functions like LogSuccess( "my message", { some values } )
> or LogError( "my message", { some values } ) ....these use LOG-> alias
> technology and work from any prg in the application.
>
> Just trying to write same for Xailer/windows using datasets .... not
> finding so easy.
>
> If I create my datasource/dataset by calling a function in my
> mainform:Initialize ... it works ok.
>
> But when I move off to another form or use some 'TFormPanel FROM XPanel'
> code from Ignacio .... my LOG workarea is OVERWRITTEN by the datasets on
> the new form ... so my LogSuccess/Error functions fail.
>
> Dont really want to be attaching & opening LOG datasource/dataset to every
> form.
>
> Without 'dataforms', what is the easy way of having global access to a
> datasource/dataset. ????
>
> Any thoughts would be appreciated.
>
> Chris
>
>
>
We expecto to have a special kind of form called 'Data module' for Xailer 2
that will be publish for all the application.
Right now, a datasource or a dataset can be linked to a form or not, it
depends on its oParent Value. If is linked to a form the datasets and
datasources are destroyed when the form is destroyed.
I suggest you create a new member on the global public object AppData with
the name oLog which holds an instance of a class TLog wich does all the job.
If you have any
Regards.
--
Ignacio Ortiz de Zúñiga
Xailer support / Soporte de Xailer
http://www.xailer.com
http://www.xailer.info
"Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
news:49e89c5b$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> In clipper/xharbour we have had a 'Log' system based around a dbf opened
> at application start up.
>
> We have simple functions like LogSuccess( "my message", { some values } )
> or LogError( "my message", { some values } ) ....these use LOG-> alias
> technology and work from any prg in the application.
>
> Just trying to write same for Xailer/windows using datasets .... not
> finding so easy.
>
> If I create my datasource/dataset by calling a function in my
> mainform:Initialize ... it works ok.
>
> But when I move off to another form or use some 'TFormPanel FROM XPanel'
> code from Ignacio .... my LOG workarea is OVERWRITTEN by the datasets on
> the new form ... so my LogSuccess/Error functions fail.
>
> Dont really want to be attaching & opening LOG datasource/dataset to every
> form.
>
> Without 'dataforms', what is the easy way of having global access to a
> datasource/dataset. ????
>
> Any thoughts would be appreciated.
>
> Chris
>
>
>
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
-
- Mensajes: 384
- Registrado: Mar May 01, 2007 5:49 pm
DataSource Dataset 'visible' from different forms in application ??
Ignacio,
Thanks for your reply.
I am going down the route of 'No Parent' on my DataSource & DataSet ... it
appears to be working ok.
Thanks
Chris
"Ignacio Ortiz de Zúñiga" <NoNameToAvoidSpam@xailer.com> wrote in message
news:49e8bfbe$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Chris,
>
> We expecto to have a special kind of form called 'Data module' for Xailer
> 2 that will be publish for all the application.
>
> Right now, a datasource or a dataset can be linked to a form or not, it
> depends on its oParent Value. If is linked to a form the datasets and
> datasources are destroyed when the form is destroyed.
>
> I suggest you create a new member on the global public object AppData with
> the name oLog which holds an instance of a class TLog wich does all the
> job. If you have any
>
> Regards.
>
>
>
> --
> Ignacio Ortiz de Zúñiga
> Xailer support / Soporte de Xailer
> http://www.xailer.com
> http://www.xailer.info
> "Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
> news:49e89c5b$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
>> In clipper/xharbour we have had a 'Log' system based around a dbf opened
>> at application start up.
>>
>> We have simple functions like LogSuccess( "my message", { some values } )
>> or LogError( "my message", { some values } ) ....these use LOG-> alias
>> technology and work from any prg in the application.
>>
>> Just trying to write same for Xailer/windows using datasets .... not
>> finding so easy.
>>
>> If I create my datasource/dataset by calling a function in my
>> mainform:Initialize ... it works ok.
>>
>> But when I move off to another form or use some 'TFormPanel FROM XPanel'
>> code from Ignacio .... my LOG workarea is OVERWRITTEN by the datasets on
>> the new form ... so my LogSuccess/Error functions fail.
>>
>> Dont really want to be attaching & opening LOG datasource/dataset to
>> every form.
>>
>> Without 'dataforms', what is the easy way of having global access to a
>> datasource/dataset. ????
>>
>> Any thoughts would be appreciated.
>>
>> Chris
>>
>>
>>
>
>
Thanks for your reply.
I am going down the route of 'No Parent' on my DataSource & DataSet ... it
appears to be working ok.
Thanks
Chris
"Ignacio Ortiz de Zúñiga" <NoNameToAvoidSpam@xailer.com> wrote in message
news:49e8bfbe$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Chris,
>
> We expecto to have a special kind of form called 'Data module' for Xailer
> 2 that will be publish for all the application.
>
> Right now, a datasource or a dataset can be linked to a form or not, it
> depends on its oParent Value. If is linked to a form the datasets and
> datasources are destroyed when the form is destroyed.
>
> I suggest you create a new member on the global public object AppData with
> the name oLog which holds an instance of a class TLog wich does all the
> job. If you have any
>
> Regards.
>
>
>
> --
> Ignacio Ortiz de Zúñiga
> Xailer support / Soporte de Xailer
> http://www.xailer.com
> http://www.xailer.info
> "Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
> news:49e89c5b$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
>> In clipper/xharbour we have had a 'Log' system based around a dbf opened
>> at application start up.
>>
>> We have simple functions like LogSuccess( "my message", { some values } )
>> or LogError( "my message", { some values } ) ....these use LOG-> alias
>> technology and work from any prg in the application.
>>
>> Just trying to write same for Xailer/windows using datasets .... not
>> finding so easy.
>>
>> If I create my datasource/dataset by calling a function in my
>> mainform:Initialize ... it works ok.
>>
>> But when I move off to another form or use some 'TFormPanel FROM XPanel'
>> code from Ignacio .... my LOG workarea is OVERWRITTEN by the datasets on
>> the new form ... so my LogSuccess/Error functions fail.
>>
>> Dont really want to be attaching & opening LOG datasource/dataset to
>> every form.
>>
>> Without 'dataforms', what is the easy way of having global access to a
>> datasource/dataset. ????
>>
>> Any thoughts would be appreciated.
>>
>> Chris
>>
>>
>>
>
>
-
- Mensajes: 384
- Registrado: Mar May 01, 2007 5:49 pm
DataSource Dataset 'visible' from different forms in application ??
Ignacio,
Thanks for your reply.
I am going down the route of 'No Parent' on my DataSource & DataSet ... it
appears to be working ok.
Thanks
Chris
"Ignacio Ortiz de Zúñiga" <NoNameToAvoidSpam@xailer.com> wrote in message
news:49e8bfbe$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Chris,
>
> We expecto to have a special kind of form called 'Data module' for Xailer
> 2 that will be publish for all the application.
>
> Right now, a datasource or a dataset can be linked to a form or not, it
> depends on its oParent Value. If is linked to a form the datasets and
> datasources are destroyed when the form is destroyed.
>
> I suggest you create a new member on the global public object AppData with
> the name oLog which holds an instance of a class TLog wich does all the
> job. If you have any
>
> Regards.
>
>
>
> --
> Ignacio Ortiz de Zúñiga
> Xailer support / Soporte de Xailer
> http://www.xailer.com
> http://www.xailer.info
> "Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
> news:49e89c5b$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
>> In clipper/xharbour we have had a 'Log' system based around a dbf opened
>> at application start up.
>>
>> We have simple functions like LogSuccess( "my message", { some values } )
>> or LogError( "my message", { some values } ) ....these use LOG-> alias
>> technology and work from any prg in the application.
>>
>> Just trying to write same for Xailer/windows using datasets .... not
>> finding so easy.
>>
>> If I create my datasource/dataset by calling a function in my
>> mainform:Initialize ... it works ok.
>>
>> But when I move off to another form or use some 'TFormPanel FROM XPanel'
>> code from Ignacio .... my LOG workarea is OVERWRITTEN by the datasets on
>> the new form ... so my LogSuccess/Error functions fail.
>>
>> Dont really want to be attaching & opening LOG datasource/dataset to
>> every form.
>>
>> Without 'dataforms', what is the easy way of having global access to a
>> datasource/dataset. ????
>>
>> Any thoughts would be appreciated.
>>
>> Chris
>>
>>
>>
>
>
Thanks for your reply.
I am going down the route of 'No Parent' on my DataSource & DataSet ... it
appears to be working ok.
Thanks
Chris
"Ignacio Ortiz de Zúñiga" <NoNameToAvoidSpam@xailer.com> wrote in message
news:49e8bfbe$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Chris,
>
> We expecto to have a special kind of form called 'Data module' for Xailer
> 2 that will be publish for all the application.
>
> Right now, a datasource or a dataset can be linked to a form or not, it
> depends on its oParent Value. If is linked to a form the datasets and
> datasources are destroyed when the form is destroyed.
>
> I suggest you create a new member on the global public object AppData with
> the name oLog which holds an instance of a class TLog wich does all the
> job. If you have any
>
> Regards.
>
>
>
> --
> Ignacio Ortiz de Zúñiga
> Xailer support / Soporte de Xailer
> http://www.xailer.com
> http://www.xailer.info
> "Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
> news:49e89c5b$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
>> In clipper/xharbour we have had a 'Log' system based around a dbf opened
>> at application start up.
>>
>> We have simple functions like LogSuccess( "my message", { some values } )
>> or LogError( "my message", { some values } ) ....these use LOG-> alias
>> technology and work from any prg in the application.
>>
>> Just trying to write same for Xailer/windows using datasets .... not
>> finding so easy.
>>
>> If I create my datasource/dataset by calling a function in my
>> mainform:Initialize ... it works ok.
>>
>> But when I move off to another form or use some 'TFormPanel FROM XPanel'
>> code from Ignacio .... my LOG workarea is OVERWRITTEN by the datasets on
>> the new form ... so my LogSuccess/Error functions fail.
>>
>> Dont really want to be attaching & opening LOG datasource/dataset to
>> every form.
>>
>> Without 'dataforms', what is the easy way of having global access to a
>> datasource/dataset. ????
>>
>> Any thoughts would be appreciated.
>>
>> Chris
>>
>>
>>
>
>