Hi,
I am trying to set initial values into some Data Control Edits during
Appending of new records.
Below is the only code that I can get to work but seems complicated.
METHOD NlTranDsAddNew( oSender ) CLASS TForm1
::oNlTranDs:GoBottom() // Go to bottom
of file to pick up some field values
// This is a complicated way of getting default values into the Data
Aware Controls for editing
::oNlTranDs:TRANNO( dsOBJECT ):DefValue := ::oNlTranDs:TRANNO + 1
::oNlTranDs:FY( dsOBJECT ):DefValue := ::oNlTranDs:FY
// Data Controls will show these Values on the screen
RETURN Nil
I really want to put the values into the DataSet record buffer and then just
oDs:UpdateControls() to show the values, but cant get it to work.
Any thoughts on how to set & display these initial values 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.
Setting Data Control Edits Initial value when Appending records ....
-
- Mensajes: 384
- Registrado: Mar May 01, 2007 5:49 pm
- ignacio
- Site Admin
- Mensajes: 9447
- Registrado: Lun Abr 06, 2015 8:00 pm
- Ubicación: Madrid, Spain
- Contactar:
Setting Data Control Edits Initial value when Appending records ....
Chris,
You can set the values directly to the dataset, but after the call to the
AddNew() event. For example:
Using a temporal var:
WITH OBJECT oDataset
:GoBottom()
VarTranNo := :TranNo + 1
:AddNew()
:TranNo := VarTranNo
END WITH
(There should be no need to call oDs:UpdateControls)
Without using a temporal var :
WITH OBJECT oDataset
:AddNew()
:SaveState( .t. )
:GoBottom()
:TranNo := :TranNo( dsVALUE ) + 1
:RestoreState( .t. )
END WITH
Regards,
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
http://www.xailer.com/forum
http://www.xailer.com/dokuwiki
"Chris Gillard" escribió en el mensaje de
noticias:4d6f5f20$[email=2@svctag-j7w3v3j....]2@svctag-j7w3v3j....[/email]
Hi,
I am trying to set initial values into some Data Control Edits during
Appending of new records.
Below is the only code that I can get to work but seems complicated.
METHOD NlTranDsAddNew( oSender ) CLASS TForm1
::oNlTranDs:GoBottom() // Go to bottom
of file to pick up some field values
// This is a complicated way of getting default values into the Data
Aware Controls for editing
::oNlTranDs:TRANNO( dsOBJECT ):DefValue := ::oNlTranDs:TRANNO + 1
::oNlTranDs:FY( dsOBJECT ):DefValue := ::oNlTranDs:FY
// Data Controls will show these Values on the screen
RETURN Nil
I really want to put the values into the DataSet record buffer and then just
oDs:UpdateControls() to show the values, but cant get it to work.
Any thoughts on how to set & display these initial values would be
appreciated.
Chris
You can set the values directly to the dataset, but after the call to the
AddNew() event. For example:
Using a temporal var:
WITH OBJECT oDataset
:GoBottom()
VarTranNo := :TranNo + 1
:AddNew()
:TranNo := VarTranNo
END WITH
(There should be no need to call oDs:UpdateControls)
Without using a temporal var :
WITH OBJECT oDataset
:AddNew()
:SaveState( .t. )
:GoBottom()
:TranNo := :TranNo( dsVALUE ) + 1
:RestoreState( .t. )
END WITH
Regards,
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
http://www.xailer.com/forum
http://www.xailer.com/dokuwiki
"Chris Gillard" escribió en el mensaje de
noticias:4d6f5f20$[email=2@svctag-j7w3v3j....]2@svctag-j7w3v3j....[/email]
Hi,
I am trying to set initial values into some Data Control Edits during
Appending of new records.
Below is the only code that I can get to work but seems complicated.
METHOD NlTranDsAddNew( oSender ) CLASS TForm1
::oNlTranDs:GoBottom() // Go to bottom
of file to pick up some field values
// This is a complicated way of getting default values into the Data
Aware Controls for editing
::oNlTranDs:TRANNO( dsOBJECT ):DefValue := ::oNlTranDs:TRANNO + 1
::oNlTranDs:FY( dsOBJECT ):DefValue := ::oNlTranDs:FY
// Data Controls will show these Values on the screen
RETURN Nil
I really want to put the values into the DataSet record buffer and then just
oDs:UpdateControls() to show the values, but cant get it to work.
Any thoughts on how to set & display these initial values 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
Setting Data Control Edits Initial value when Appending records ....
Ignacio,
Thanks for that, its much more how I hoped it could bwe done.
My only problem now is to do it when using the Dbnavigator control and its
ADD button.
I need to find somewhere to put your code, you may have a suggestion to help
please?
Chris
"Ignacio Ortiz de Zúñiga" <NoNameToAvoidSpam@xailer.com> wrote in message
news:[email=4d6f669e@svctag-j7w3v3j....]4d6f669e@svctag-j7w3v3j....[/email]
> Chris,
>
> You can set the values directly to the dataset, but after the call to the
> AddNew() event. For example:
>
> Using a temporal var:
>
> WITH OBJECT oDataset
> :GoBottom()
> VarTranNo := :TranNo + 1
> :AddNew()
> :TranNo := VarTranNo
> END WITH
>
> (There should be no need to call oDs:UpdateControls)
>
> Without using a temporal var :
>
> WITH OBJECT oDataset
> :AddNew()
> :SaveState( .t. )
> :GoBottom()
> :TranNo := :TranNo( dsVALUE ) + 1
> :RestoreState( .t. )
> END WITH
>
> Regards,
>
>
> Ignacio Ortiz de Zúñiga
> [Equipo de Xailer / Xailer team]
> http://www.xailer.com
> http://www.xailer.info
> http://www.xailer.com/forum
> http://www.xailer.com/dokuwiki
> "Chris Gillard" escribió en el mensaje de
> noticias:4d6f5f20$[email=2@svctag-j7w3v3j....]2@svctag-j7w3v3j....[/email]
>
> Hi,
>
> I am trying to set initial values into some Data Control Edits during
> Appending of new records.
>
> Below is the only code that I can get to work but seems complicated.
>
> METHOD NlTranDsAddNew( oSender ) CLASS TForm1
> ::oNlTranDs:GoBottom() // Go to bottom
> of file to pick up some field values
> // This is a complicated way of getting default values into the Data
> Aware Controls for editing
> ::oNlTranDs:TRANNO( dsOBJECT ):DefValue := ::oNlTranDs:TRANNO + 1
> ::oNlTranDs:FY( dsOBJECT ):DefValue := ::oNlTranDs:FY
> // Data Controls will show these Values on the screen
> RETURN Nil
>
> I really want to put the values into the DataSet record buffer and then
> just
> oDs:UpdateControls() to show the values, but cant get it to work.
>
> Any thoughts on how to set & display these initial values would be
> appreciated.
>
> Chris
>
Thanks for that, its much more how I hoped it could bwe done.
My only problem now is to do it when using the Dbnavigator control and its
ADD button.
I need to find somewhere to put your code, you may have a suggestion to help
please?
Chris
"Ignacio Ortiz de Zúñiga" <NoNameToAvoidSpam@xailer.com> wrote in message
news:[email=4d6f669e@svctag-j7w3v3j....]4d6f669e@svctag-j7w3v3j....[/email]
> Chris,
>
> You can set the values directly to the dataset, but after the call to the
> AddNew() event. For example:
>
> Using a temporal var:
>
> WITH OBJECT oDataset
> :GoBottom()
> VarTranNo := :TranNo + 1
> :AddNew()
> :TranNo := VarTranNo
> END WITH
>
> (There should be no need to call oDs:UpdateControls)
>
> Without using a temporal var :
>
> WITH OBJECT oDataset
> :AddNew()
> :SaveState( .t. )
> :GoBottom()
> :TranNo := :TranNo( dsVALUE ) + 1
> :RestoreState( .t. )
> END WITH
>
> Regards,
>
>
> Ignacio Ortiz de Zúñiga
> [Equipo de Xailer / Xailer team]
> http://www.xailer.com
> http://www.xailer.info
> http://www.xailer.com/forum
> http://www.xailer.com/dokuwiki
> "Chris Gillard" escribió en el mensaje de
> noticias:4d6f5f20$[email=2@svctag-j7w3v3j....]2@svctag-j7w3v3j....[/email]
>
> Hi,
>
> I am trying to set initial values into some Data Control Edits during
> Appending of new records.
>
> Below is the only code that I can get to work but seems complicated.
>
> METHOD NlTranDsAddNew( oSender ) CLASS TForm1
> ::oNlTranDs:GoBottom() // Go to bottom
> of file to pick up some field values
> // This is a complicated way of getting default values into the Data
> Aware Controls for editing
> ::oNlTranDs:TRANNO( dsOBJECT ):DefValue := ::oNlTranDs:TRANNO + 1
> ::oNlTranDs:FY( dsOBJECT ):DefValue := ::oNlTranDs:FY
> // Data Controls will show these Values on the screen
> RETURN Nil
>
> I really want to put the values into the DataSet record buffer and then
> just
> oDs:UpdateControls() to show the values, but cant get it to work.
>
> Any thoughts on how to set & display these initial values would be
> appreciated.
>
> Chris
>
- ignacio
- Site Admin
- Mensajes: 9447
- Registrado: Lun Abr 06, 2015 8:00 pm
- Ubicación: Madrid, Spain
- Contactar:
Setting Data Control Edits Initial value when Appending records ....
Chris,
Then you should perform the complete operation. Something like this:
METHOD DBNavigatorClickInsert( oSender ) CLASS TMyForm
::oDataset:AddNew()
/*your code goes here*/
::oDbNavigator:UnLock()
RETURN .F.
METHOD DBNavigatorClickEdit( oSender ) CLASS TMyForm
::oDataset:Edit()
/*your code goes here*/
::oDbNavigator:UnLock()
RETURN .F.
Remember to call oDbNavigator:Lock() after the oDataset:Update()
Regards,
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
http://www.xailer.com/forum
http://www.xailer.com/dokuwiki
"Chris Gillard" escribió en el mensaje de
noticias:[email=4d6f694c@svctag-j7w3v3j....]4d6f694c@svctag-j7w3v3j....[/email]
Ignacio,
Thanks for that, its much more how I hoped it could bwe done.
My only problem now is to do it when using the Dbnavigator control and its
ADD button.
I need to find somewhere to put your code, you may have a suggestion to help
please?
Chris
"Ignacio Ortiz de Zúñiga" <NoNameToAvoidSpam@xailer.com> wrote in message
news:[email=4d6f669e@svctag-j7w3v3j....]4d6f669e@svctag-j7w3v3j....[/email]
> Chris,
>
> You can set the values directly to the dataset, but after the call to the
> AddNew() event. For example:
>
> Using a temporal var:
>
> WITH OBJECT oDataset
> :GoBottom()
> VarTranNo := :TranNo + 1
> :AddNew()
> :TranNo := VarTranNo
> END WITH
>
> (There should be no need to call oDs:UpdateControls)
>
> Without using a temporal var :
>
> WITH OBJECT oDataset
> :AddNew()
> :SaveState( .t. )
> :GoBottom()
> :TranNo := :TranNo( dsVALUE ) + 1
> :RestoreState( .t. )
> END WITH
>
> Regards,
>
>
> Ignacio Ortiz de Zúñiga
> [Equipo de Xailer / Xailer team]
> http://www.xailer.com
> http://www.xailer.info
> http://www.xailer.com/forum
> http://www.xailer.com/dokuwiki
> "Chris Gillard" escribió en el mensaje de
> noticias:4d6f5f20$[email=2@svctag-j7w3v3j....]2@svctag-j7w3v3j....[/email]
>
> Hi,
>
> I am trying to set initial values into some Data Control Edits during
> Appending of new records.
>
> Below is the only code that I can get to work but seems complicated.
>
> METHOD NlTranDsAddNew( oSender ) CLASS TForm1
> ::oNlTranDs:GoBottom() // Go to bottom
> of file to pick up some field values
> // This is a complicated way of getting default values into the Data
> Aware Controls for editing
> ::oNlTranDs:TRANNO( dsOBJECT ):DefValue := ::oNlTranDs:TRANNO + 1
> ::oNlTranDs:FY( dsOBJECT ):DefValue := ::oNlTranDs:FY
> // Data Controls will show these Values on the screen
> RETURN Nil
>
> I really want to put the values into the DataSet record buffer and then
> just
> oDs:UpdateControls() to show the values, but cant get it to work.
>
> Any thoughts on how to set & display these initial values would be
> appreciated.
>
> Chris
>
Then you should perform the complete operation. Something like this:
METHOD DBNavigatorClickInsert( oSender ) CLASS TMyForm
::oDataset:AddNew()
/*your code goes here*/
::oDbNavigator:UnLock()
RETURN .F.
METHOD DBNavigatorClickEdit( oSender ) CLASS TMyForm
::oDataset:Edit()
/*your code goes here*/
::oDbNavigator:UnLock()
RETURN .F.
Remember to call oDbNavigator:Lock() after the oDataset:Update()
Regards,
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
http://www.xailer.com/forum
http://www.xailer.com/dokuwiki
"Chris Gillard" escribió en el mensaje de
noticias:[email=4d6f694c@svctag-j7w3v3j....]4d6f694c@svctag-j7w3v3j....[/email]
Ignacio,
Thanks for that, its much more how I hoped it could bwe done.
My only problem now is to do it when using the Dbnavigator control and its
ADD button.
I need to find somewhere to put your code, you may have a suggestion to help
please?
Chris
"Ignacio Ortiz de Zúñiga" <NoNameToAvoidSpam@xailer.com> wrote in message
news:[email=4d6f669e@svctag-j7w3v3j....]4d6f669e@svctag-j7w3v3j....[/email]
> Chris,
>
> You can set the values directly to the dataset, but after the call to the
> AddNew() event. For example:
>
> Using a temporal var:
>
> WITH OBJECT oDataset
> :GoBottom()
> VarTranNo := :TranNo + 1
> :AddNew()
> :TranNo := VarTranNo
> END WITH
>
> (There should be no need to call oDs:UpdateControls)
>
> Without using a temporal var :
>
> WITH OBJECT oDataset
> :AddNew()
> :SaveState( .t. )
> :GoBottom()
> :TranNo := :TranNo( dsVALUE ) + 1
> :RestoreState( .t. )
> END WITH
>
> Regards,
>
>
> Ignacio Ortiz de Zúñiga
> [Equipo de Xailer / Xailer team]
> http://www.xailer.com
> http://www.xailer.info
> http://www.xailer.com/forum
> http://www.xailer.com/dokuwiki
> "Chris Gillard" escribió en el mensaje de
> noticias:4d6f5f20$[email=2@svctag-j7w3v3j....]2@svctag-j7w3v3j....[/email]
>
> Hi,
>
> I am trying to set initial values into some Data Control Edits during
> Appending of new records.
>
> Below is the only code that I can get to work but seems complicated.
>
> METHOD NlTranDsAddNew( oSender ) CLASS TForm1
> ::oNlTranDs:GoBottom() // Go to bottom
> of file to pick up some field values
> // This is a complicated way of getting default values into the Data
> Aware Controls for editing
> ::oNlTranDs:TRANNO( dsOBJECT ):DefValue := ::oNlTranDs:TRANNO + 1
> ::oNlTranDs:FY( dsOBJECT ):DefValue := ::oNlTranDs:FY
> // Data Controls will show these Values on the screen
> RETURN Nil
>
> I really want to put the values into the DataSet record buffer and then
> just
> oDs:UpdateControls() to show the values, but cant get it to work.
>
> Any thoughts on how to set & display these initial values 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
Setting Data Control Edits Initial value when Appending records ....
Ignacio,
I now understand what to do by replacing the standard DBNavigator
ClickInsert code with my own code to do the whole job.
Xailer is truly flexible.
Thanks for your time to help with this.
Regards
Chris
"Ignacio Ortiz de Zúñiga" <NoNameToAvoidSpam@xailer.com> wrote in message
news:4d6f8bd4$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Chris,
>
> Then you should perform the complete operation. Something like this:
>
> METHOD DBNavigatorClickInsert( oSender ) CLASS TMyForm
>
> ::oDataset:AddNew()
> /*your code goes here*/
> ::oDbNavigator:UnLock()
>
> RETURN .F.
>
> METHOD DBNavigatorClickEdit( oSender ) CLASS TMyForm
>
> ::oDataset:Edit()
> /*your code goes here*/
> ::oDbNavigator:UnLock()
>
> RETURN .F.
>
> Remember to call oDbNavigator:Lock() after the oDataset:Update()
>
> Regards,
>
> Ignacio Ortiz de Zúñiga
> [Equipo de Xailer / Xailer team]
> http://www.xailer.com
> http://www.xailer.info
> http://www.xailer.com/forum
> http://www.xailer.com/dokuwiki
> "Chris Gillard" escribió en el mensaje de
> noticias:[email=4d6f694c@svctag-j7w3v3j....]4d6f694c@svctag-j7w3v3j....[/email]
>
> Ignacio,
>
> Thanks for that, its much more how I hoped it could bwe done.
>
> My only problem now is to do it when using the Dbnavigator control and its
> ADD button.
>
> I need to find somewhere to put your code, you may have a suggestion to
> help
> please?
>
> Chris
>
> "Ignacio Ortiz de Zúñiga" <NoNameToAvoidSpam@xailer.com> wrote in message
> news:[email=4d6f669e@svctag-j7w3v3j....]4d6f669e@svctag-j7w3v3j....[/email]
>> Chris,
>>
>> You can set the values directly to the dataset, but after the call to the
>> AddNew() event. For example:
>>
>> Using a temporal var:
>>
>> WITH OBJECT oDataset
>> :GoBottom()
>> VarTranNo := :TranNo + 1
>> :AddNew()
>> :TranNo := VarTranNo
>> END WITH
>>
>> (There should be no need to call oDs:UpdateControls)
>>
>> Without using a temporal var :
>>
>> WITH OBJECT oDataset
>> :AddNew()
>> :SaveState( .t. )
>> :GoBottom()
>> :TranNo := :TranNo( dsVALUE ) + 1
>> :RestoreState( .t. )
>> END WITH
>>
>> Regards,
>>
>>
>> Ignacio Ortiz de Zúñiga
>> [Equipo de Xailer / Xailer team]
>> http://www.xailer.com
>> http://www.xailer.info
>> http://www.xailer.com/forum
>> http://www.xailer.com/dokuwiki
>> "Chris Gillard" escribió en el mensaje de
>> noticias:4d6f5f20$[email=2@svctag-j7w3v3j....]2@svctag-j7w3v3j....[/email]
>>
>> Hi,
>>
>> I am trying to set initial values into some Data Control Edits during
>> Appending of new records.
>>
>> Below is the only code that I can get to work but seems complicated.
>>
>> METHOD NlTranDsAddNew( oSender ) CLASS TForm1
>> ::oNlTranDs:GoBottom() // Go to
>> bottom
>> of file to pick up some field values
>> // This is a complicated way of getting default values into the Data
>> Aware Controls for editing
>> ::oNlTranDs:TRANNO( dsOBJECT ):DefValue := ::oNlTranDs:TRANNO + 1
>> ::oNlTranDs:FY( dsOBJECT ):DefValue := ::oNlTranDs:FY
>> // Data Controls will show these Values on the screen
>> RETURN Nil
>>
>> I really want to put the values into the DataSet record buffer and then
>> just
>> oDs:UpdateControls() to show the values, but cant get it to work.
>>
>> Any thoughts on how to set & display these initial values would be
>> appreciated.
>>
>> Chris
>>
>
I now understand what to do by replacing the standard DBNavigator
ClickInsert code with my own code to do the whole job.
Xailer is truly flexible.
Thanks for your time to help with this.
Regards
Chris
"Ignacio Ortiz de Zúñiga" <NoNameToAvoidSpam@xailer.com> wrote in message
news:4d6f8bd4$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Chris,
>
> Then you should perform the complete operation. Something like this:
>
> METHOD DBNavigatorClickInsert( oSender ) CLASS TMyForm
>
> ::oDataset:AddNew()
> /*your code goes here*/
> ::oDbNavigator:UnLock()
>
> RETURN .F.
>
> METHOD DBNavigatorClickEdit( oSender ) CLASS TMyForm
>
> ::oDataset:Edit()
> /*your code goes here*/
> ::oDbNavigator:UnLock()
>
> RETURN .F.
>
> Remember to call oDbNavigator:Lock() after the oDataset:Update()
>
> Regards,
>
> Ignacio Ortiz de Zúñiga
> [Equipo de Xailer / Xailer team]
> http://www.xailer.com
> http://www.xailer.info
> http://www.xailer.com/forum
> http://www.xailer.com/dokuwiki
> "Chris Gillard" escribió en el mensaje de
> noticias:[email=4d6f694c@svctag-j7w3v3j....]4d6f694c@svctag-j7w3v3j....[/email]
>
> Ignacio,
>
> Thanks for that, its much more how I hoped it could bwe done.
>
> My only problem now is to do it when using the Dbnavigator control and its
> ADD button.
>
> I need to find somewhere to put your code, you may have a suggestion to
> help
> please?
>
> Chris
>
> "Ignacio Ortiz de Zúñiga" <NoNameToAvoidSpam@xailer.com> wrote in message
> news:[email=4d6f669e@svctag-j7w3v3j....]4d6f669e@svctag-j7w3v3j....[/email]
>> Chris,
>>
>> You can set the values directly to the dataset, but after the call to the
>> AddNew() event. For example:
>>
>> Using a temporal var:
>>
>> WITH OBJECT oDataset
>> :GoBottom()
>> VarTranNo := :TranNo + 1
>> :AddNew()
>> :TranNo := VarTranNo
>> END WITH
>>
>> (There should be no need to call oDs:UpdateControls)
>>
>> Without using a temporal var :
>>
>> WITH OBJECT oDataset
>> :AddNew()
>> :SaveState( .t. )
>> :GoBottom()
>> :TranNo := :TranNo( dsVALUE ) + 1
>> :RestoreState( .t. )
>> END WITH
>>
>> Regards,
>>
>>
>> Ignacio Ortiz de Zúñiga
>> [Equipo de Xailer / Xailer team]
>> http://www.xailer.com
>> http://www.xailer.info
>> http://www.xailer.com/forum
>> http://www.xailer.com/dokuwiki
>> "Chris Gillard" escribió en el mensaje de
>> noticias:4d6f5f20$[email=2@svctag-j7w3v3j....]2@svctag-j7w3v3j....[/email]
>>
>> Hi,
>>
>> I am trying to set initial values into some Data Control Edits during
>> Appending of new records.
>>
>> Below is the only code that I can get to work but seems complicated.
>>
>> METHOD NlTranDsAddNew( oSender ) CLASS TForm1
>> ::oNlTranDs:GoBottom() // Go to
>> bottom
>> of file to pick up some field values
>> // This is a complicated way of getting default values into the Data
>> Aware Controls for editing
>> ::oNlTranDs:TRANNO( dsOBJECT ):DefValue := ::oNlTranDs:TRANNO + 1
>> ::oNlTranDs:FY( dsOBJECT ):DefValue := ::oNlTranDs:FY
>> // Data Controls will show these Values on the screen
>> RETURN Nil
>>
>> I really want to put the values into the DataSet record buffer and then
>> just
>> oDs:UpdateControls() to show the values, but cant get it to work.
>>
>> Any thoughts on how to set & display these initial values would be
>> appreciated.
>>
>> Chris
>>
>