Tdbf example lazarus / 8-Other ---------------------------------------------------------------------- davesimplewear · 2007-05-13 02:31 Hi, I have created a simple Master detail demo with Tdbf component, can some one tell me where I can post it? ---------------------------------------------------------------------- Vincent Snijders · 2007-05-13 20:41 Create a page on the wiki explaining the example like SysRec, Contacts Database or MySQL demo and send me the source. Don't let the length of the example pages stop you, I don't mind if it is not as elaborate. ;-) ---------------------------------------------------------------------- davesimplewear · 2007-05-14 00:04 Hi Vincent This is my first outing in forums or wikis, so thank you for your advice. I have created a page on the wiki under my user name, could you please send me the address to upload the demo (it is in zip format) is that ok? :oops: ---------------------------------------------------------------------- Vincent Snijders · 2007-05-14 07:34 Thanks for the wiki page. I moved the page to the general content. You can find my email address, if you click on my user name in the forums. Source zip is fine. ---------------------------------------------------------------------- wiz · 2007-07-09 20:39 Is this Tdbf master detail demo somewhere on the site? I can't find it. edit 1 time. Found the page in the wiki but no download ---------------------------------------------------------------------- antonio · 2007-07-09 21:51 The DbfLaz package is now (version 0.9.13) installed by default. ---------------------------------------------------------------------- wiz · 2007-07-10 18:18 Thanks. It is the demo of the master/detail code I was looking for. I am struggling to make it work. ---------------------------------------------------------------------- antonio · 2007-07-10 18:24 http://wiki.lazarus.freepascal.org/Master_Detail_Demo_using_TDBF_Compo nent http://wiki.lazarus.freepascal.org/Lazarus_Tdbf_Tutorial ---------------------------------------------------------------------- Vincent Snijders · 2007-07-10 19:04 It used rxnew, which does not compile with fpc 2..3.1 It used hardcoded path for the dbf, so that needed to be fixed too. Therefore I did not upload it yet. ---------------------------------------------------------------------- wiz · 2007-07-10 19:40 Thanks for the prompt replies. I'll keep experimenting until I get it working ---------------------------------------------------------------------- wiz · 2007-07-11 21:27 If anybody else is interested in this, it can be done by setting the filter property for the detail table. Set DBEdit1 to the Master source keyfield. ( In this case, the invoice number ) Code: [Select] procedure TForm1.DbfHeadAfterScroll(DataSet: TDataSet); begin   DbfItems.Filter := 'ITEMINVOICENUMBER = ' + DBEdit1.Text; end;   It may not be the right way but I have had 2 days with Lazarus & 12 years with Delphi. ---------------------------------------------------------------------- warleyalex · 2008-01-05 02:07 I wish Tdbf demo would work in Kylix. Does anybody has suck demo working using tdbf component? Thanks, warleyalex