Hello,
Usind 2 DbfDataSets (for example 'order' and 'person') standing in relation
e.g. over a recordpointer.
Can I show fields from both DataSets together in one TDBBrowse or have I to
do it in the "nostalgic" way?
Is the AddCalcField method appropriate to get a fieldvalue from an other
DataSet?
Thanks in advance
Ingo
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.
DataSets combining
- ignacio
- Site Admin
- Mensajes: 9463
- Registrado: Lun Abr 06, 2015 8:00 pm
- Ubicación: Madrid, Spain
- Contactar:
DataSets combining
Ingo,
You can make a calculated field on master table, but is even easier, just
use the event OnGetData of the detail column with something like this:
METHOD DBBrowse1Column1GetData( oSender, cText, nImage ) CLASS TForm1
cText := oDetailDataSet:oFieldByName( "fieldname" ):FieldGet()
RETURN Nil
Regards,
"Ingo" <ingo.jh@web.de> escribió en el mensaje
news:[email=4386d4e9@ozsrvnegro.ozlan.local...]4386d4e9@ozsrvnegro.ozlan.local...[/email]
> Hello,
>
> Usind 2 DbfDataSets (for example 'order' and 'person') standing in
> relation e.g. over a recordpointer.
>
> Can I show fields from both DataSets together in one TDBBrowse or have I
> to do it in the "nostalgic" way?
>
> Is the AddCalcField method appropriate to get a fieldvalue from an other
> DataSet?
>
> Thanks in advance
>
> Ingo
>
You can make a calculated field on master table, but is even easier, just
use the event OnGetData of the detail column with something like this:
METHOD DBBrowse1Column1GetData( oSender, cText, nImage ) CLASS TForm1
cText := oDetailDataSet:oFieldByName( "fieldname" ):FieldGet()
RETURN Nil
Regards,
"Ingo" <ingo.jh@web.de> escribió en el mensaje
news:[email=4386d4e9@ozsrvnegro.ozlan.local...]4386d4e9@ozsrvnegro.ozlan.local...[/email]
> Hello,
>
> Usind 2 DbfDataSets (for example 'order' and 'person') standing in
> relation e.g. over a recordpointer.
>
> Can I show fields from both DataSets together in one TDBBrowse or have I
> to do it in the "nostalgic" way?
>
> Is the AddCalcField method appropriate to get a fieldvalue from an other
> DataSet?
>
> Thanks in advance
>
> Ingo
>
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
DataSets combining
Ignacio,
I have to thank you one more time again.
DBBrowse1Column1GetData isn't working I get the error:
TForm1:DBBrowse1Column1GetData(70)
Fehler BASE/1004 Class: 'NIL' has no exported method: FIELDGET
Argumente: ()
but using the event OnDrawCell it works
Regards
Ingo
"Ignacio Ortiz de Zúñiga" <InvalidAccount@ozs.com> schrieb im Newsbeitrag
news:4386d6fb$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
> Ingo,
>
> You can make a calculated field on master table, but is even easier, just
> use the event OnGetData of the detail column with something like this:
>
> METHOD DBBrowse1Column1GetData( oSender, cText, nImage ) CLASS TForm1
>
> cText := oDetailDataSet:oFieldByName( "fieldname" ):FieldGet()
>
> RETURN Nil
>
> Regards,
>
> "Ingo" <ingo.jh@web.de> escribió en el mensaje
> news:[email=4386d4e9@ozsrvnegro.ozlan.local...]4386d4e9@ozsrvnegro.ozlan.local...[/email]
>> Hello,
>>
>> Usind 2 DbfDataSets (for example 'order' and 'person') standing in
>> relation e.g. over a recordpointer.
>>
>> Can I show fields from both DataSets together in one TDBBrowse or have I
>> to do it in the "nostalgic" way?
>>
>> Is the AddCalcField method appropriate to get a fieldvalue from an other
>> DataSet?
>>
>> Thanks in advance
>>
>> Ingo
>>
>
>
I have to thank you one more time again.
DBBrowse1Column1GetData isn't working I get the error:
TForm1:DBBrowse1Column1GetData(70)
Fehler BASE/1004 Class: 'NIL' has no exported method: FIELDGET
Argumente: ()
but using the event OnDrawCell it works
Regards
Ingo
"Ignacio Ortiz de Zúñiga" <InvalidAccount@ozs.com> schrieb im Newsbeitrag
news:4386d6fb$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
> Ingo,
>
> You can make a calculated field on master table, but is even easier, just
> use the event OnGetData of the detail column with something like this:
>
> METHOD DBBrowse1Column1GetData( oSender, cText, nImage ) CLASS TForm1
>
> cText := oDetailDataSet:oFieldByName( "fieldname" ):FieldGet()
>
> RETURN Nil
>
> Regards,
>
> "Ingo" <ingo.jh@web.de> escribió en el mensaje
> news:[email=4386d4e9@ozsrvnegro.ozlan.local...]4386d4e9@ozsrvnegro.ozlan.local...[/email]
>> Hello,
>>
>> Usind 2 DbfDataSets (for example 'order' and 'person') standing in
>> relation e.g. over a recordpointer.
>>
>> Can I show fields from both DataSets together in one TDBBrowse or have I
>> to do it in the "nostalgic" way?
>>
>> Is the AddCalcField method appropriate to get a fieldvalue from an other
>> DataSet?
>>
>> Thanks in advance
>>
>> Ingo
>>
>
>
- ignacio
- Site Admin
- Mensajes: 9463
- Registrado: Lun Abr 06, 2015 8:00 pm
- Ubicación: Madrid, Spain
- Contactar:
DataSets combining
Ingo,
Then, oDetailDataSet:oFieldByName( "fieldname" ) is returning NIL and should
return a TDataField object. Check the 'fieldname'.
Regards,
"Ingo" <ingo.jh@web.de> escribió en el mensaje
news:4386e6b1$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
> Ignacio,
>
> I have to thank you one more time again.
>
> DBBrowse1Column1GetData isn't working I get the error:
>
> TForm1:DBBrowse1Column1GetData(70)
> Fehler BASE/1004 Class: 'NIL' has no exported method: FIELDGET
> Argumente: ()
>
> but using the event OnDrawCell it works
>
> Regards
>
> Ingo
>
> "Ignacio Ortiz de Zúñiga" <InvalidAccount@ozs.com> schrieb im Newsbeitrag
> news:4386d6fb$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
>> Ingo,
>>
>> You can make a calculated field on master table, but is even easier, just
>> use the event OnGetData of the detail column with something like this:
>>
>> METHOD DBBrowse1Column1GetData( oSender, cText, nImage ) CLASS TForm1
>>
>> cText := oDetailDataSet:oFieldByName( "fieldname" ):FieldGet()
>>
>> RETURN Nil
>>
>> Regards,
>>
>> "Ingo" <ingo.jh@web.de> escribió en el mensaje
>> news:[email=4386d4e9@ozsrvnegro.ozlan.local...]4386d4e9@ozsrvnegro.ozlan.local...[/email]
>>> Hello,
>>>
>>> Usind 2 DbfDataSets (for example 'order' and 'person') standing in
>>> relation e.g. over a recordpointer.
>>>
>>> Can I show fields from both DataSets together in one TDBBrowse or have I
>>> to do it in the "nostalgic" way?
>>>
>>> Is the AddCalcField method appropriate to get a fieldvalue from an other
>>> DataSet?
>>>
>>> Thanks in advance
>>>
>>> Ingo
>>>
>>
>>
>
>
Then, oDetailDataSet:oFieldByName( "fieldname" ) is returning NIL and should
return a TDataField object. Check the 'fieldname'.
Regards,
"Ingo" <ingo.jh@web.de> escribió en el mensaje
news:4386e6b1$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
> Ignacio,
>
> I have to thank you one more time again.
>
> DBBrowse1Column1GetData isn't working I get the error:
>
> TForm1:DBBrowse1Column1GetData(70)
> Fehler BASE/1004 Class: 'NIL' has no exported method: FIELDGET
> Argumente: ()
>
> but using the event OnDrawCell it works
>
> Regards
>
> Ingo
>
> "Ignacio Ortiz de Zúñiga" <InvalidAccount@ozs.com> schrieb im Newsbeitrag
> news:4386d6fb$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
>> Ingo,
>>
>> You can make a calculated field on master table, but is even easier, just
>> use the event OnGetData of the detail column with something like this:
>>
>> METHOD DBBrowse1Column1GetData( oSender, cText, nImage ) CLASS TForm1
>>
>> cText := oDetailDataSet:oFieldByName( "fieldname" ):FieldGet()
>>
>> RETURN Nil
>>
>> Regards,
>>
>> "Ingo" <ingo.jh@web.de> escribió en el mensaje
>> news:[email=4386d4e9@ozsrvnegro.ozlan.local...]4386d4e9@ozsrvnegro.ozlan.local...[/email]
>>> Hello,
>>>
>>> Usind 2 DbfDataSets (for example 'order' and 'person') standing in
>>> relation e.g. over a recordpointer.
>>>
>>> Can I show fields from both DataSets together in one TDBBrowse or have I
>>> to do it in the "nostalgic" way?
>>>
>>> Is the AddCalcField method appropriate to get a fieldvalue from an other
>>> DataSet?
>>>
>>> Thanks in advance
>>>
>>> Ingo
>>>
>>
>>
>
>
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
DataSets combining
Ignacio,
I used for the OnGetData event the same code like for the OnDrawCell event
because I copied the line from the GetData method to the DrawCell method.
Regards
Ingo
"Ignacio Ortiz de Zúñiga" <InvalidAccount@ozs.com> schrieb im Newsbeitrag
news:4386f988$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
> Ingo,
>
> Then, oDetailDataSet:oFieldByName( "fieldname" ) is returning NIL and
> should return a TDataField object. Check the 'fieldname'.
>
> Regards,
>
> "Ingo" <ingo.jh@web.de> escribió en el mensaje
> news:4386e6b1$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
>> Ignacio,
>>
>> I have to thank you one more time again.
>>
>> DBBrowse1Column1GetData isn't working I get the error:
>>
>> TForm1:DBBrowse1Column1GetData(70)
>> Fehler BASE/1004 Class: 'NIL' has no exported method: FIELDGET
>> Argumente: ()
>>
>> but using the event OnDrawCell it works
>>
>> Regards
>>
>> Ingo
>>
>> "Ignacio Ortiz de Zúñiga" <InvalidAccount@ozs.com> schrieb im Newsbeitrag
>> news:4386d6fb$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
>>> Ingo,
>>>
>>> You can make a calculated field on master table, but is even easier,
>>> just use the event OnGetData of the detail column with something like
>>> this:
>>>
>>> METHOD DBBrowse1Column1GetData( oSender, cText, nImage ) CLASS TForm1
>>>
>>> cText := oDetailDataSet:oFieldByName( "fieldname" ):FieldGet()
>>>
>>> RETURN Nil
>>>
>>> Regards,
>>>
>>> "Ingo" <ingo.jh@web.de> escribió en el mensaje
>>> news:[email=4386d4e9@ozsrvnegro.ozlan.local...]4386d4e9@ozsrvnegro.ozlan.local...[/email]
>>>> Hello,
>>>>
>>>> Usind 2 DbfDataSets (for example 'order' and 'person') standing in
>>>> relation e.g. over a recordpointer.
>>>>
>>>> Can I show fields from both DataSets together in one TDBBrowse or have
>>>> I to do it in the "nostalgic" way?
>>>>
>>>> Is the AddCalcField method appropriate to get a fieldvalue from an
>>>> other DataSet?
>>>>
>>>> Thanks in advance
>>>>
>>>> Ingo
>>>>
>>>
>>>
>>
>>
>
>
I used for the OnGetData event the same code like for the OnDrawCell event
because I copied the line from the GetData method to the DrawCell method.
Regards
Ingo
"Ignacio Ortiz de Zúñiga" <InvalidAccount@ozs.com> schrieb im Newsbeitrag
news:4386f988$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
> Ingo,
>
> Then, oDetailDataSet:oFieldByName( "fieldname" ) is returning NIL and
> should return a TDataField object. Check the 'fieldname'.
>
> Regards,
>
> "Ingo" <ingo.jh@web.de> escribió en el mensaje
> news:4386e6b1$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
>> Ignacio,
>>
>> I have to thank you one more time again.
>>
>> DBBrowse1Column1GetData isn't working I get the error:
>>
>> TForm1:DBBrowse1Column1GetData(70)
>> Fehler BASE/1004 Class: 'NIL' has no exported method: FIELDGET
>> Argumente: ()
>>
>> but using the event OnDrawCell it works
>>
>> Regards
>>
>> Ingo
>>
>> "Ignacio Ortiz de Zúñiga" <InvalidAccount@ozs.com> schrieb im Newsbeitrag
>> news:4386d6fb$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
>>> Ingo,
>>>
>>> You can make a calculated field on master table, but is even easier,
>>> just use the event OnGetData of the detail column with something like
>>> this:
>>>
>>> METHOD DBBrowse1Column1GetData( oSender, cText, nImage ) CLASS TForm1
>>>
>>> cText := oDetailDataSet:oFieldByName( "fieldname" ):FieldGet()
>>>
>>> RETURN Nil
>>>
>>> Regards,
>>>
>>> "Ingo" <ingo.jh@web.de> escribió en el mensaje
>>> news:[email=4386d4e9@ozsrvnegro.ozlan.local...]4386d4e9@ozsrvnegro.ozlan.local...[/email]
>>>> Hello,
>>>>
>>>> Usind 2 DbfDataSets (for example 'order' and 'person') standing in
>>>> relation e.g. over a recordpointer.
>>>>
>>>> Can I show fields from both DataSets together in one TDBBrowse or have
>>>> I to do it in the "nostalgic" way?
>>>>
>>>> Is the AddCalcField method appropriate to get a fieldvalue from an
>>>> other DataSet?
>>>>
>>>> Thanks in advance
>>>>
>>>> Ingo
>>>>
>>>
>>>
>>
>>
>
>