Hi, 
//first method code 
display PurchPrice ItmPrice(){    return this.purchLine().PurchPrice;}

//second method code
display VendPaymTermId DelTerms(){   return  
this.purchline().purchTable().Payment;}

Murat Bal





To: development-axapta@yahoogroups.com
From: axaptak...@yahoo.com
Date: Mon, 5 Apr 2010 05:15:43 -0700
Subject: [development-axapta] Using Display methods


















 



  


    
      
      
      Hi Friends,

 

I am a new guy doing Technical stuff AX.  

 

I am creating a report from VendPackingSlipTans 

I have created 2 display method on PurchLine Table to display 

Purchaseprice & PaymentMethod

 

display real ItmPrice()

{

    PurchLine   purchLine;

;

    select PurchPrice from purchLine

    where purchLine.ItemId == this.ItemId && purchLine.PurchId == this.purchId;

info(this.ItemId);

info(purchLine.ItemId);

    return purchLine.PurchPrice;

}

---------------------------------------------------------



display str DelTerms()

{

    PurchTable      purchTable;

;

    select Payment from purchTable

    where purchTable.PurchId == this.PurchId;

    return purchTable.Payment;

}

--------------------------------------------------



 

I am using these methods in VendPackingSlipTrans to  display purchasePrice & 
PaymentMethod.

 

But when i run the report  both coloumns are coming blank.

 

Kindly Advice what might be the reason.

 

 

 Regards,AX



[Non-text portions of this message have been removed]






    
     

    
    






                                          
_________________________________________________________________
Windows Live: Arkadaþlarýnýz size e-posta gönderdiklerinde Flickr, Twitter ve 
Digg'deki hareketlerinizi görürler.
http://www.microsoft.com/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:tr-tr:SI_SB_3:092010

[Non-text portions of this message have been removed]



------------------------------------

Yahoo! Groups Links

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

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/development-axapta/join
    (Yahoo! ID required)

<*> To change settings via email:
    development-axapta-dig...@yahoogroups.com 
    development-axapta-fullfeatu...@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    development-axapta-unsubscr...@yahoogroups.com

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


Reply via email to