Master Detail with Left Join

Hi qordk

I use a TfrxADOQuery and TfrxADOTable. In Page1 TfrxADOQuery is linked MasterData1 and TfrxADOTable with DetailData1.

In TfrxADOTable I used the property MasterFields with the index fields Tabelfield1 = Tabelfield2.
My problem is that this combination represents a 1:1 relation.
However, to display all the data, I need a left join field link from TfrxADOQuery to TfrxADOTable.

How do I create a left join link in FastReport?
About the property "MasterFields" TfrxADOTable this is not possible.
Do you have any example?

Thanks for your help

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 7:12AM
    "In TfrxADOTable I used the property MasterFields with the index fields Tabelfield1 = Tabelfield2".
    this does not make any sense.
    you would set table1 master to query1 and in table1 masterfields select one field from master one from detail
    if the table is indexed you should set the index properties as well
  • gordkgordk St.Catherines On. Canada.
    edited 7:12AM
    i posted a demo file in the binaries news group for you.
  • edited November 2009
    Hi qordk

    Thank you for the example.

    Their example has the same problem. Cust. No.. 3055 from the customer table is not displayed. This is exactly the problem that I have.
    There is no detailed record exists for the Cust. No.. 3055.

    When creating a new master record also equal to an empty record details could be created
    and the problem would be solved. For more complex queries would be the same problem again so far.

    Is your example the only possibility, to view master / detail records?

    Thank you and best regards.

    Ren?©
  • gordkgordk St.Catherines On. Canada.
    edited 7:12AM
    "Their example has the same problem. Cust. No.. 3055 from the customer table is not displayed. This is exactly the problem that I have.
    There is no detailed record exists for the Cust. No.. 3055."
    why did you not say that in the first place?
    set the masterband property printifdetailempty.

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.