I had added a new integer parameter method parmView
into PurchReqContract
class.
Then I set the value for this parmView
in PurchReqController
preRunModifyContract
method.
After that I try to retrieve the contract value in PurchReqDP
processReport
method but the value does not successfully passed to PurchReqDP
processReport
.
I did a CIL
full compile but no luck. The problem still exist. Please help.
If anyone have experienced on this problem and can provide some advices? I was using Ax2012 Kernel Version 6.2.1000.1437.
==== PurchReqContract.parmView() ===
[DataMemberAttribute('View')]
public int parmView(View _view = view)
{
view = _view;
return view;
}
======== PurchReqDP.processReport() =======
contract = this.parmDataContract() as PurchReqContract;
versionRecId = contract.parmRecordId();
versionDateTime = contract.parmVersioningTimeStamp();
requisitionPurpose = contract.parmRequisitionPurpose();
view = contract.parmView();
You are declaring the method to return an integer but your parameter is of type View.
I assume that "View" in the Parameter is an EDT of type integer? If not, check this.
Only base types can be serialized in DataContract.
Either you change the return type to be View or the parameter type to be int. They have to be the same base type.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.