Hi Khan Axapta,
This happen because you are using wrong types to return. Try to change the 
first to PurchPrice and the second to VendPaymTermId. I don't know why, but the 
display methods doesn't work when you use primary data type to return.

[]s
Pichler

--- In development-axapta@yahoogroups.com, Khan Axapta <axaptak...@...> wrote:
>
> 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.
> 
> 
>       
> 
> [Non-text portions of this message have been removed]
>


Reply via email to