Report - Section problem

roshiniroshini Member Posts: 122
Hello Experts......

Good Evening!

In Integer DataItem body , can we place a varible and display only once in the report ??

How to skip repeat rows??

do you have any idea, please suggest me........

Comments

  • BeliasBelias Member Posts: 2,998
    there are multiple ways to achieve this:

    -property maxiteration = 1 in integer dataitem
    -property dataitemtableview = SORTING(Number) WHERE(Number=CONST(1))

    and there are other ways, but these are the simplest
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • roshiniroshini Member Posts: 122
    Hi Belias,

    Thank you for your support.

    As I assigned another variable and retrived a value, I want to print that variable value one time, as now it is repeating depend on rows.

    how to achieve this??
  • BeliasBelias Member Posts: 2,998
    Where do you want to print this? header, maybe? if so, put your integer dataitem as the first one, with no indentation
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • matttraxmatttrax Member Posts: 2,309
    Yep headers print once (unless you print on every page).

    In the rare cases where it just won't work to do it like that, you set a variable like "AlreadyDisplayed" and based your SHOWOUTPUT for the section on that variable.
  • roshiniroshini Member Posts: 122
    Thanks for the quick response.

    want to print at body not header
  • BeliasBelias Member Posts: 2,998
    clear the variable after you've printed it the first time
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • roshiniroshini Member Posts: 122
    Hi Belias,

    Can you please explain, where to write the code, and how to clear the variable.
  • BeliasBelias Member Posts: 2,998
    ](*,)

    sorry to be synthetic but i tought it was clear...

    how to clear the variable:
    if it is text
    text := '';
    
    if it is integer
    integer := 0;
    
    and so on....the generic way to clear a variable is
    CLEAR(variable);
    

    About how to place your code...you should know the right place better than me as i think you have developed the report...or at least you have put the variable...just write your code in the right trigger!
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
Sign In or Register to comment.