Recent

Author Topic: tbufdataset problem  (Read 3923 times)

plamen_f

  • New member
  • *
  • Posts: 8
tbufdataset problem
« on: June 29, 2011, 06:14:40 pm »
Hello,

I am new i Lazarzus.

I'm using tbufdataset to acumulate some data and then to write it to firebird database.
I want to see what is acumulated before I write the contents to FB.

So the thread is:
tbufdataset > tdatasource > tdbgrid

this is the procedure used to add selected data to tbufdataset:

Code: [Select]
procedure TForm1.btnAddClick(Sender: TObject);
begin
  with DM1 do
  begin
     if bdbPOS.Active = false
        then
            begin
              ShowMessage('bdbPOS is Inactive');
              bdbPOS.Open;
            end
         else
           begin
              ShowMessage('bdbPOS is Active');
              //bdbPOS.Last;
           end;
     bdbPOS.Append;
     bdbPOS.FieldByName('Code').AsString := edProdCode.Text;
     bdbPOS.FieldByName('Description').AsString := edProdName.Text;
     bdbPOS.Post;
   end;
end;               

unfortunatelly after adding 1-st record (he is visualised well) on the 2-nd grid show 2 emty lines. There is no error, no problem but vusualitaion not work.

Did I miss something, or something is wrong.

Tank you in advance for your help!
« Last Edit: July 01, 2011, 07:17:51 am by plamen_f »

plamen_f

  • New member
  • *
  • Posts: 8
Re: visualize tbufdataset contents
« Reply #1 on: July 01, 2011, 07:15:09 am »
Anyone?

There is a bug  in Mantis: #0019631. May be this is the why I cannot see everything after 1-st record selcted?

tatamata

  • Hero Member
  • *****
  • Posts: 787
    • ZMSQL - SQL enhanced in-memory database
Re: tbufdataset problem
« Reply #2 on: July 02, 2011, 05:52:31 pm »
You should report the bug.

plamen_f

  • New member
  • *
  • Posts: 8
Re: tbufdataset problem
« Reply #3 on: July 04, 2011, 02:42:41 pm »
Do you thing this is different bug than #0019631?

 

TinyPortal © 2005-2018