Master-detail with filtering

edited 10:52AM in FastReport 4.0
Hello!
I`m trying to create a master-detail report.Everything works fine except i want to hide some of the records based on a field.
For example
I have 2 tables:

Table1
Table2

And table1 is master and table2 is detail. The master fields are Number=Number. I want to hide all the records from table2 that the field Date Is Null.
When i try to make filter on the detail table i get "Filter property cannot be used for detail tables."

I am using Delphi7.

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 10:52AM
    assuming your tfrxreportcomponent engine is set to default convertnulls to 0
    in the report write code for the obp event of the detail band.

    bandname.visible := (<datasetname."fieldname"> > 0);

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.