Detail Data

Good morning guys, anyone out there who works with FastReport using the 'data details' can you pass me an example? tried my best not to use this function, but now no way. Thank you all.



Another information: not just write the details on all lines, but not write when the field is empty, type, 3 cases have a budget where the first and last have products and services, but the second has only services. What will be displayed is only the product, as the second layer has, wish it were as follows:


Capa1
? ? ? ? ? ? ? ?  detail
? ? ? ? ? ? ? ?  detail
? ? ? ? ? ? ? ?  detail
? ? ? ? ? ? ? ?  detail
Capa2
Capa3
? ? ? ? ? ? ? ?  detail
? ? ? ? ? ? ? ?  detail
? ? ? ? ? ? ? ?  detail
? ? ? ? ? ? ? ?  detail
? ? ? ? ? ? ? ?  detail


if you have been confused talk please.

Comments

  • added a 'child' after the 'master data' and it displays the normal data the way I want, but when it's empty still gets a huge blank space, I would like to cancel this space blank and go to the next record the 'master data'. Its?
  • Would be more or less this:
    I would like to delete these blanks (photos attached)

    l480.jpg

    ixh9.jpg
  • gordkgordk St.Catherines On. Canada.
    edited 10:37AM
    still not clear on what you are trying to accomplish
    generally to hide a band you would write code in the obp event of the band to set the bands visible property.
  • Friend, we see 'details' some comes with a result in the case being put to the numbers pairs. Where is the numbers would be odd q I wanted was just to the next record to masterdata instead of getting that blank space as in the picture.
  • gordkgordk St.Catherines On. Canada.
    edited 10:37AM
    you want to hide the master databand when there is no detail data?
  • edited September 2013
    gordk wrote: »
    you want to hide the master databand when there is no detail data?

    yes, exactly.
  • gordkgordk St.Catherines On. Canada.
    edited 10:37AM
    top of code page
    var
    ds: tfrxdataset;
    in the master data obp event

    begin
    ds :=report.getdataset('username of your client dataset');
    masterdatabandname.visible:= ds.recordcount >0;
    end;
  • //top of code page
    var
    ds: tfrxdataset;
    //in the master data obp event

    procedure DetailData2OnBeforePrint(Sender: TfrxComponent);
    begin
    ds :=report.getdataset('PRO2');
    DetailData2.visible:= ds.recordcount > 0;
    //showmessage(DetailData2.visible);
    end;



    This way? I'm trying so but always returns false the visible.
  • gordkgordk St.Catherines On. Canada.
    edited 10:37AM
    i told you to write it in the obp event of the masterdataband not the detail databand.
  • gordkgordk St.Catherines On. Canada.
    edited 10:37AM
    you might also try changing this line of code
    "ds :=report.getdataset('PRO2');"
    to ds:= name of your detaildataband.dataset;
  • gpigpi
    edited 10:37AM
    you want to hide the master databand when there is no detail data?

    yes, exactly.
    Try to set MasterData3.PrintIfDetailEmpty to False
  • gordkgordk St.Catherines On. Canada.
    edited 10:37AM
    Thanks Paul i forgot we added that property a while ago.
  • oh my God, something so simple was marked as true --' thanks guys, excuse the inconvenience I caused you.

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.