Hi,
>From what I've just learned, I think you should add some statement 
in Fetch Method in the report, such as :

While (qr.next())
    {
       (your data source) = qr.get(tablenum(your table));
       .
       ..  //the calculation
       
       if (YourAmount > 0)
           element.send(your data source); // or element.execute(x);
      
       ret = true;

    }

don't know it will help ? :)
rgds,
Anton


--- In [EMAIL PROTECTED], Ahmed Ibrahim 
<[EMAIL PROTECTED]> wrote:
> Tony,
>  
> Thanks so much but actually I want to prevent the printing of 
bodysection if the return value of display methos is zero so how can 
I bypass the printing of bodysection if value is zero?.
>  
> Thanks in advance.
>  
> Ahmed
> 
> 
> Tony Depalo <[EMAIL PROTECTED]> wrote:
> One way of doing this is to have your display method return a 
str.  Then within your display 
> display str yourAnswer()
> {
> if(your answer <> 0)
>     StrFmt('%1',YourAnswer;
> return '';
> }
>  
> I think there is a property Show Zero that might also work?
> Tony
>  
> 
> -----Original Message-----
> From: mbsdeveloper [mailto:[EMAIL PROTECTED] 
> Sent: Monday, 6 December 2004 3:38 PM
> To: [EMAIL PROTECTED]
> Subject: [Axapta-Knowledge-Village] Section Printing in Report.
> 
> 
> 
> 
> Dears,
> 
> I created a display method in the body section to do some 
> calculations, that works fine but actually I don't want the body 
> section to be printed if the value of the function is zero. so can 
> someone tell me how to do it? 
> 
> regards
>   Ahmed
> 
> 
> 
> 
> 
> 
> 
> Sharing the knowledge on Axapta. 
> 
> 
> 
> 
> Sharing the knowledge on Axapta. 
> 
> 
> Yahoo! Groups SponsorADVERTISEMENT
> 
> 
> ---------------------------------
> Yahoo! Groups Links
> 
>    To visit your group on the web, go to:
> http://groups.yahoo.com/group/Axapta-Knowledge-Village/
>   
>    To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>   
>    Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
Service. 
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com





------------------------ Yahoo! Groups Sponsor --------------------~--> 
$4.98 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/kGEolB/TM
--------------------------------------------------------------------~-> 

Sharing the knowledge on Axapta. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/Axapta-Knowledge-Village/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to