Any Cascade features of Master-Detail ?

Discussion of open issues, suggestions and bugs regarding PgDAC (PostgreSQL Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
lauchuen
Posts: 37
Joined: Fri 07 Aug 2009 16:59

Any Cascade features of Master-Detail ?

Post by lauchuen » Wed 23 May 2012 02:05

hi,

does PgDAC has cascade feature like cascade open/close of master detail relationship ?

ROD
Devart Team
Posts: 23
Joined: Mon 07 May 2012 09:09

Re: Any Cascade features of Master-Detail ?

Post by ROD » Wed 23 May 2012 08:53

No, the feature of cascade open/close is very easy to implement, but is not unambiguous enough.
The most obvious that can be done, is to group opening/closing of datasets at your discretion:

Code: Select all

procedure CascaseOpen;
begin
  dsMaster.Open;
  dsDetail1.Open;
  dsDetail3.Open;
end;

procedure CascaseClose;
begin
  dsDetail1.Close;
  dsDetail3.Close;
  dsMaster.Close;
end;

lauchuen
Posts: 37
Joined: Fri 07 Aug 2009 16:59

Re: Any Cascade features of Master-Detail ?

Post by lauchuen » Wed 23 May 2012 09:06

yes, ofcause that is very easy to implement. but think about to create these procedure really slow down the development time, if the component can provide these simple features really helpful. its ok. thanks a lot.

ROD
Devart Team
Posts: 23
Joined: Mon 07 May 2012 09:09

Re: Any Cascade features of Master-Detail ?

Post by ROD » Wed 23 May 2012 10:13

Ok, we will consider this.

Not at all.

Post Reply