I am using AX 2012 and have developed a report using the class and have use the contract class for customer parameter like 'From Date' and 'To Date'.
Now I want to initialize the 'From Date' with some date like 01\07\2013 how I can do this. My class code is as follow.
//class declaration
[DataContractAttribute]
public class CustomerBalancesQryContract
{
FromDate StartDate;
ToDate ToDate;
boolean WithoutOpening ;
//AccountName accountName;implements SysOperationValidatable
//
#define.parameterStartDate('StartDate')
#define.parameterToDate('ToDate')
}
// function declaration
[DataMemberAttribute("ToDate"),
SysOperationLabelAttribute(literalStr("@SYS14656"))
]
public TransDate parmToDate(TransDate _ToDate = ToDate)
{
ToDate = _ToDate;
return ToDate;
}
*This post is locked for comments