Master-Detail Manual Control

TECH TIP: Manual Master/Detail JITPipelines

In some applications, you may want to implement a master/detail JITPipeline relationship in which you programmtically control the detail data that is available for each master record.

  1. Create two JITPipelines and implement the OnGetFieldValue event in the standard way.
  2. For the detail JITPipeline, leave the MasterDataPipeline and MasterFieldLinks properties unassigned.
  3. For the master JITPipeline, use the OnRecordPositionChange event to initialize the detail JITPipeline:
  myJITDetail.Close;
  myJITDetail.RecordCount := {get detail record count}
  myJITDetail.Open;