Home Datapipelines

master detail relationship using code with 2 fields

edited August 2007 in Datapipelines
In your example,
var
lFieldLink: TppMasterFieldLink;


begin

{define the master/detail pipeline relationship}
plDetail.MasterDataPipeline := plMaster;

{create a new field link }
lFieldLink := TppMasterFieldLink.Create(nil);

lFieldLink.Parent := plDetail;

{assign the detail field name}
lFieldLink.DetailFieldName := 'CustNo';

{assign the master field name}
lFieldLink.MasterFieldName := 'CustNo';
end;
could the masterfieldname and detailFieldName has more than one field? that
is , DetailFieldName := 'field1;field2', MasterFieldName := 'field1;field2'?
also, I have a subreport which act as a detail dataset (e.g. dsDetail1), but
in the subreport detail band, I place another subreport as a detail for the
previous dataset(dsDetail2, detail of dsDetail1), is this possible?
Also, if the detailField has null value, what would happen?
I am using RB7.03
thx!!

Comments

This discussion has been closed.