Show band only if data exists

mcsmcs
edited 9:42PM in FastReport 4.0
Hello world [img]style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />! I was wondering if anybody can help, it should not be very hard. I have in FR, Header, GroupHeader, MasterData and Child, i want to show Child band only if data exists. Child band contains some kind of Note for the people, some people have notes other haven't, so I would like to print this band only if data exists. Please help... Sorry if similar post already exists, but i havent found it... Tnx in advance.[/img]

Comments

  • edited 9:42PM
    mcs wrote: »
    Hello world [img]style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />! I was wondering if anybody can help, it should not be very hard. I have in FR, Header, GroupHeader, MasterData and Child, i want to show Child band only if data exists. Child band contains some kind of Note for the people, some people have notes other haven't, so I would like to print this band only if data exists. Please help... Sorry if similar post already exists, but i havent found it... Tnx in advance.[/img]
    In the OBP event of the band

    Child.Visible := Length( Trim( dataField ) ) > 0;
  • mcsmcs
    edited 9:42PM
    technisoft wrote: »
    technisoft wrote: »
    Hello world [img]style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />! I was wondering if anybody can help, it should not be very hard. I have in FR, Header, GroupHeader, MasterData and Child, i want to show Child band only if data exists. Child band contains some kind of Note for the people, some people have notes other haven't, so I would like to print this band only if data exists. Please help... Sorry if similar post already exists, but i havent found it... Tnx in advance.[/img]
    In the OBP event of the band

    Child.Visible := Length( Trim( dataField ) ) > 0;

    technisoft, I'll try that first thing tomorrow morning on work, will let you know.
  • mcsmcs
    edited 9:42PM
    Sorry for late replay after one day of work, it finally worked...

    In code section procedures must go before main begin end. (end finishing with comma).

    Field values are going in "", example <DataSetName."FieldName">

    I posted also pictures to see..
  • IvicaSDIvicaSD Beograd, Srbija
    edited 9:42PM
    mcs wrote: »
    Sorry for late replay after one day of work, it finally worked...

    In code section procedures must go before main begin end. (end finishing with comma).

    Those are PASCAL rules: procedures are stored AFTER var section, and prior to BEGIN of the main program. Main program ends with a period ( . ), not a comma ( , ) - other stuff (commands) with a semicolon ( ; )

    You can also use other programming languages...


    Good luck with your work!
    Sretno u daljem radu! >

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.