Please check by placing the breakpoint on the select statement, that you are 
getting value in the "this" ? also check that when you drag the display method 
to report then on control you have the correct datasource specified ?
 



To: development-axapta@yahoogroups.com
CC: axapta-knowledge-vill...@yahoogroups.com
From: axaptak...@yahoo.com
Date: Sun, 4 Apr 2010 07:23:54 -0700
Subject: [development-axapta] 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.

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




                                          
_________________________________________________________________
The New Busy is not the old busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3

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

Reply via email to