Search the Wiki

Viewing 397 to 399 of 408 items

How To…Create a DataPipeline in Code

Question “How do I create a DataPipeline in code?” Solution Datapipelines can easily be created dynamically in code by assigning a few key properties. Create the TppDBPipeline object: FDataPipeline := TppDBPipeline.Create(Self); Give the pipeline a recognizable name. FDataPipeline.Name := ‘plCustomers’; FDataPipeline.UserName := ‘Customers’; Assign the DataSource property. FDataPipeline.DataSource := dsCustomers; Assign any other properties you  Full Article…

0

How To…Check For Data Before Printing

Question “How do I check if there is data to be retrieved before printing my report?” Solution Check the TppDataPipeline.EOF and TppDataPipeline.BOF properties.  If both of these properties are True, the dataset contains no data.  Note that the datapipeline will need to be opened to successfully access these properties. Download:  CheckForDataBeforePrinting.zip Sample Delphi code: function  Full Article…

0

Display MasterFieldLinks Editor

TECH TIP: Display DataPipeline.MasterFieldLinks Editor in code uses ppForms, ppFLnkEd; procedure TForm1.DisplayFieldLInkEditor; var lFormClass : TFormClass; lFieldLinkEd: TppCustomMasterFieldLinkEditor; begin {the detail pipeline's masterdatapipeline property needs to be set prior to using the field link editor} if (myDetailPipeline.MasterDataPipeline = nil) then myDetailPipeline.MasterDataPipeline := myMasterPipeline; {get the registered field link editor class} lFormClass := ppGetFormClass(TppCustomMasterFieldLinkEditor); {create the  Full Article…

0