Hi all, I need to add two new parameters to the standard report dialog and use the values in dp class to filter the records. The report only uses a contract class and no ui builder class, so I have taken the extension of the contract class and added the parm methods. These new fields are showing correctly in the dialog when I call the report. But when I try to fetch the values I selected in the Dialog in DP class they are blank. Can some one help me with what I am missing, here is my code. Any thoughts will be really helpful and thanks in advance
[ExtensionOf(classStr(PSAPayWhenPaidContract))]
[
DataContractAttribute]
/// <summary>
/// When Form is open,
/// Set the status as OPEN and mark the Pwp checkbox as Yes.
/// </summary>
public final class PSAPayWhenPaidContract_Extension
{
public NoYes pwp;
public PSAVendInvoiceStatus invoiceStatus;
[DataMemberAttribute("PayWhenPaid"),
SysOperationLabelAttribute(literalstr("@PSA3342"))]
public NoYes parmPayWhenPaid(NoYes _pwp = pwp)
{
pwp = _pwp;
return pwp;
}
[DataMemberAttribute("InvoiceStatus"),
SysOperationLabelAttribute(literalStr("@PSA125"))]
public PSAVendInvoiceStatus parmInvoiceStatus(PSAVendInvoiceStatus _invoiceStatus = invoiceStatus)
{
invoiceStatus = _invoiceStatus;
return invoiceStatus;
}
}
Here is how I am calling in the DP class
public void processReport()
{
QueryRun QueryRun;
CustTrans custTrans;
ProjCostTrans projCostTrans;
ProjInvoiceCost projInvoiceCost;
next processReport();
PSAPayWhenPaidContract contractLoc = this.parmDataContract() as PSAPayWhenPaidContract;
NoYes isPwpLoc2 = contractLoc.parmPayWhenPaid();
PSAVendInvoiceStatus pSAVendInvoiceStatusLoc2 = contractLoc.parmInvoiceStatus();
NoYes isPwpLoc = contract.parmPayWhenPaid();
PSAVendInvoiceStatus pSAVendInvoiceStatusLoc = contract.parmInvoiceStatus();
}