Subject Re: [IBO] Contact Demo: How to use the History Search Panel?
Author Raymond Kennington
Luiz wrote:
> Raymond ,
> The search panel can be used entering search criteries and apply a post.
> You could try with it.

I've given Ben a history.

With your extra line below, the search criteria on HISTORY tab appears - thanks.

Now, when I enter BEN in the FirstName edit no records are found. What's the next step?


> procedure TfrmContact.pcContactChange(Sender: TObject);
> begin
> // If in Search mode is all you need to do is click on the Browse tab and
> the
> // matching records are displayed.
> if pcContact.Activepage = tsBrowse then begin
> with dmContact.qrContact do begin
> if not BufferActive then Open;
> end;
> end;
> if pcContact.Activepage = tsHistory then begin
> if not (dmContact.qrHistory.state in [dssSearch]) then // I add
> dmContact.qrHistory.Open;
> end else begin
> dmContact.qrHistory.Close;
> end;
> end;

Raymond Kennington
Programming Solutions
W2W Team B