I have a question:
If I use TDBNavigator and I click on Insert button how can I modify any value just AFTER the dataset enter in edit mode?
the onclickinsert just allow or noT to get in addnew, so I can't use it.
The tdataset event OnAddNew is called BEFORE too, so, where do I can set some values for fields, like below:
...
WITH OBJECT oCustomer
:City := "Manaus"
:Cep := myCEP()
...
END
????
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.
event onaddnew with tdbnavigator
event onaddnew with tdbnavigator
In another words:
Is there a way to create an event like "OnAfterAddNew" to be fired JUST AFTER the edit mode is activated?
Is there a way to create an event like "OnAfterAddNew" to be fired JUST AFTER the edit mode is activated?
- ignacio
- Site Admin
- Mensajes: 9445
- Registrado: Lun Abr 06, 2015 8:00 pm
- Ubicación: Madrid, Spain
- Contactar:
event onaddnew with tdbnavigator
Roberto escribió el lun, 01 octubre 2012 20:12In another words:
Is there a way to create an event like "OnAfterAddNew" to be fired JUST AFTER the edit mode is activated?
Try with TDataset:OnAddNew
Regards,
Is there a way to create an event like "OnAfterAddNew" to be fired JUST AFTER the edit mode is activated?
Try with TDataset:OnAddNew
Regards,
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
event onaddnew with tdbnavigator
ignacio wrote on Tue, 02 October 2012 20:12Roberto escribió el lun, 01 octubre 2012 20:12In another words:
Is there a way to create an event like "OnAfterAddNew" to be fired JUST AFTER the edit mode is activated?
Try with TDataset:OnAddNew
Regards,
Hi,
OnAddNew is fired BEFORE the TDataSet get in append mode, as I said above.
Is there a way to create an event like "OnAfterAddNew" to be fired JUST AFTER the edit mode is activated?
Try with TDataset:OnAddNew
Regards,
Hi,
OnAddNew is fired BEFORE the TDataSet get in append mode, as I said above.
- ignacio
- Site Admin
- Mensajes: 9445
- Registrado: Lun Abr 06, 2015 8:00 pm
- Ubicación: Madrid, Spain
- Contactar:
event onaddnew with tdbnavigator
TBrwColumn:OnEdit()
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
event onaddnew with tdbnavigator
ignacio wrote on Wed, 03 October 2012 12:58TBrwColumn:OnEdit()
sorry, I guess I am not making myself clear.
I just need to do some job JUST AFTER the dataset get in addnew, not only before edit a column value or something else. If I don't use the tdbnavigator and I call addnew by myself so there is no problem and I can do what I want. The problem is when I click on edit button then I have no chance to do any additional work before the use start editing the fields.
sorry, I guess I am not making myself clear.
I just need to do some job JUST AFTER the dataset get in addnew, not only before edit a column value or something else. If I don't use the tdbnavigator and I call addnew by myself so there is no problem and I can do what I want. The problem is when I click on edit button then I have no chance to do any additional work before the use start editing the fields.
event onaddnew with tdbnavigator
Roberto,
> I just need to do some job JUST AFTER the dataset get in
> addnew, not only before edit a column value or something
> else. If I don't use the tdbnavigator and I call addnew by
> myself so there is no problem and I can do what I want. The
> problem is when I click on edit button then I have no chance
> to do any additional work before the use start editing the
> fields.
Then the simplest way is to use the event OnClickInsert from the
TDbNavigator control. F.e.:
METHOD DbNavigator1ClickInsert( oSender ) CLASS TForm1
oSender:oDataSet:AddNew()
// here you may do whatever you need
// ...
RETURN .F. // This is to avoid the dbnavigator to call addnew again
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
> I just need to do some job JUST AFTER the dataset get in
> addnew, not only before edit a column value or something
> else. If I don't use the tdbnavigator and I call addnew by
> myself so there is no problem and I can do what I want. The
> problem is when I click on edit button then I have no chance
> to do any additional work before the use start editing the
> fields.
Then the simplest way is to use the event OnClickInsert from the
TDbNavigator control. F.e.:
METHOD DbNavigator1ClickInsert( oSender ) CLASS TForm1
oSender:oDataSet:AddNew()
// here you may do whatever you need
// ...
RETURN .F. // This is to avoid the dbnavigator to call addnew again
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info