I know that a set number of empty lines have been pre-created in most sections of the CDF, but there are times when we need to add more lines than already exist.
I read in another forum post that the way to create a new line to the prepaids section is
dynamic CDFLine = ((IOrder)order).CreateNew("PrepaidDetailLine");
So the "code" for that section is "PrepaidLineDetail"
Can you provide the "code" to create new lines for all other sections, please? It would also be very helpful if you include the code for adding a new charge to a line. Thanks.
DueFromBuyer
DueToBuyer
DueFromSeller
DueToSeller
OtherCosts
Escrows
TaxesAndGovernmentFees
OriginationCharges
ServicesNotShoppedFor
ServicesShoppedFor
Adding lines and charges to CDF
Moderator: Phil Barton
-
- Posts: 22
- Joined: Tue Oct 28, 2008 11:11 am
Re: Adding lines and charges to CDF
You cannot add new lines to Page 3 sections, but you can add new charges to the existing lines. For Page 2, you can add lines and charges. Since you have the correct code below, I will give you the name of the line object that you will need to replace it with.
Lines
OriginationChargeDetailLine
ServiceNotShoppedForDetailLine
ServiceShoppedForDetailLine
TaxAndGovernmentDetailLine
PrepaidDetailLine
EscrowDetailLine
OtherCostDetailLine
Here is the code for adding a charge to a line:
dynamic charge = ((IOrder)order).CreateNew("OriginationChargeDetailCharge")
cdfLine.Add(charge);
Charges
OriginationChargeDetailCharge
ServiceNotShoppedForDetailCharge
ServiceShoppedForDetailCharge
TaxAndGovernmentDetailCharge
PrepaidDetailCharge
EscrowDetailCharge
OtherCostDetailCharge
DueFromBuyerSummaryCharge
DueToBuyerSummaryCharge
DueFromSellerSummaryCharge
DueToBuyerSummaryCharge
Lines
OriginationChargeDetailLine
ServiceNotShoppedForDetailLine
ServiceShoppedForDetailLine
TaxAndGovernmentDetailLine
PrepaidDetailLine
EscrowDetailLine
OtherCostDetailLine
Here is the code for adding a charge to a line:
dynamic charge = ((IOrder)order).CreateNew("OriginationChargeDetailCharge")
cdfLine.Add(charge);
Charges
OriginationChargeDetailCharge
ServiceNotShoppedForDetailCharge
ServiceShoppedForDetailCharge
TaxAndGovernmentDetailCharge
PrepaidDetailCharge
EscrowDetailCharge
OtherCostDetailCharge
DueFromBuyerSummaryCharge
DueToBuyerSummaryCharge
DueFromSellerSummaryCharge
DueToBuyerSummaryCharge