Home End User
New Blog Posts: Merging Reports - Part 1 and Part 2

Question on conditinal visibility

edited February 2008 in End User
I need a little help here with some code.
I have an a listing with repeated values.
For example
Item No Desc Status Whse QOH
A Item A X 01 100
A Item A X 02 150
B Item B X 01 743


For fields lets say the following
item_no = DBText1
Desc=DBText2
Status=DBText3
Whse=DBText4
QOH=DBText5

Now I want to surpress repeated values for several fields, but only for
change in Item No.
So first I used the element property for the Item No field and did a
surpress repeated values. Of course if I do this for say the Status field,
when it gets to Item B it will Surpress the X there also.

So far I went to the Calc tab. Details band and selected BeforePrint.

I tried using DBText4.Visible := (ReportDataPipeline['Item_no']<>'');

Since the item_no field does have a value this didn't work.

So how do I reference if the field is visible on the report?

I am using RE 10.07
Thanks in advance.

Comments

  • edited February 2008
    Hi Michael,

    Two options.

    1. Keep track of the repeated value yourself and be sure that once it
    changes, the other field will print.

    2. The OnDrawCommandCreate event will only fire for the initial repeated
    value. You could possibly set a flag in this routine telling any other
    components to print their value as well.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.