Code: Select all
if (hb2.Hud701 > 0)
{
IOrderItem line701 = (IOrderItem)lines[701];
IList chgs = (IList)line701.GetProperty("Charges");
IOrderItem chg = (IOrderItem)chgs[0];
chg.SetProperty("CommissionAmount", hb2.Hud701); // This line produces the error shown below
chg.SetProperty("HUDToName", hb2.Hud701A);
}
at SoftPro.EntityModel.Entity`1.GetField(String propertyName, Boolean nonPublic)
at SoftPro.EntityModel.Entity`1.OnSetValue(String propertyName, Object value)
at SoftPro.EntityModel.Entity`1.SoftPro.EntityModel.IEntity.SetProperty(String path, Object value)
at HUDCharge.SoftPro.OrderTracking.Client.Orders.IOrderItem.SetProperty(String , Object )
at SoftProConversion.Form1.CreateOrder() in C:\dev\SoftProConversion\SoftProConversion\Form1.cs:line 4934
I also tried "Amount' which did not work either. How do I enter the Listing Broker Commission and the Selling Broker Commission amounts on lines 701 and 702 of the HUD? The Field Code Browser shows Charges.CommissionAmount.