I have written a pretty standard report in which I override the init method
as follows (upToRange is defined as a QueryBuildRange in my
classDescription):
public void init()
{
date lastDayOfPrevMonth;
;
super();
//Add expiry range
lastDayOfPrevMonth = dateEndMth(dateMthFwd(today(), 1));
upToRange =
this.query().dataSourceTable(tablenum(CustTrans)).addRange(fieldnum(CustTran
s, LastSettleDate));
upToRange.value('<
'+date2str(lastDayOfPrevMonth, -1, -1, -1, -1, -1, -1));
//Members
unsettledAmt = 0;
}
I then try to use upToRange to determine the user selected value in a
display method as follows:
display str upToDate()
{
return upToRange.value();
}
This results in an error stating that the querybuildrange object is not
initialised. Am I going about this the wrong way? Is there a better way to
get the selected values?
Regards,
Matt Benic
Axapta Developer
UTi Sun Couriers Division
| Yahoo! Groups Sponsor | |
|
|
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

