Hide Fields

Hi

I'm new to fastreport and would like to know how to hide a particular MemoView when the DataField has a null value or equal to ' '. I would really appreciate your help.

Thank You

Comments

  • gordkgordk St.Catherines On. Canada.
    edited March 2011
    Assuming the report engine convertnulls property has not been changed
    in the obp event of the object write code
    objectname.visible := (<dataset."datafieldname"> > 0)
  • edited 3:14PM
    gordk wrote: »
    Assuming the report engine convertnulls property has not been changed
    in the obp event of the object write code
    objectname.visible := (<dataset."datafieldname"> > 0)

    Thanks, it worked except for the following..

    Is it possible for the underlying objects to "shift" into the place of the invisible object. At the moment the report just show blank spaces for objects that don't have any data.

    Thank You
  • gordkgordk St.Catherines On. Canada.
    edited 3:14PM
    no you are only setting the visible property not the out put location.
    However you can mod the engine's curx or cury position
    read the user manual on script and using the engine object.
    Also Note that the engine processes the design page from top down depending on band type
    and the objects in the band from left to right depending upon creation order,
    the band is not actually output it is a place holder for the objects contained within its bounds.

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.