Here is an example for a preRunModifyContract method in which it simply fetch the PurchTable record and set the RecId in the contract class.
Function:
/// <summary>
/// Fetch the <c>PurchTable</c> record.
/// </summary>
/// <returns>
/// set <c>Contract</c> class for selected record recid.
/// </returns>
protected void preRunModifyContract()
{
PurchTable PurchTable;
LandCostContract contract;
contract = this.parmReportContract().parmRdpContract() as LandCostContract;
PurchTable = this.parmArgs().record();
contract.parmRecId(PurchTable.RecId);
}
Function:
/// <summary>
/// Fetch the <c>PurchTable</c> record.
/// </summary>
/// <returns>
/// set <c>Contract</c> class for selected record recid.
/// </returns>
protected void preRunModifyContract()
{
PurchTable PurchTable;
LandCostContract contract;
contract = this.parmReportContract().parmRdpContract() as LandCostContract;
PurchTable = this.parmArgs().record();
contract.parmRecId(PurchTable.RecId);
}
No comments:
Post a Comment