Search found 68 matches

by bandorganman
Tue Dec 28, 2021 10:27 pm
Forum: Shell (User Interface)
Topic: HUDTo Code
Replies: 2
Views: 2667

HUDTo Code

if (hb1.Hud109 > 0) { IOrderItem line109 = (IOrderItem)lines[109]; IList chgs = (IList)line109.GetProperty("Charges"); IOrderItem chg = (IOrderItem)chgs[0]; chg.SetProperty("Amount", hb1.Hud109); chg.SetProperty("Description", hb1.Hud109A); IOrderItem hto = (IOrderItem...
by bandorganman
Tue Dec 28, 2021 5:16 pm
Forum: Shell (User Interface)
Topic: getting a list of errors
Replies: 1
Views: 2427

getting a list of errors

After creating an order and populating it with data when I applyChanges it results in an error saying the order has many errors. How do I get a list of these errors?
by bandorganman
Sat Dec 11, 2021 10:03 am
Forum: Shell (User Interface)
Topic: HUD section 700 Commission Amount
Replies: 2
Views: 4100

Re: HUD section 700 Commission Amount

I hope the issues have been resolved satisfactorily and that all is well. I did set a breakpoint and looked at the charge object and saw the amount property but could not set it. I should have looked at the line object but didn't because the field code browser was pointing to charges. Thank you for ...
by bandorganman
Mon Dec 06, 2021 12:10 pm
Forum: Shell (User Interface)
Topic: HUD section 700 Commission Amount
Replies: 2
Views: 4100

HUD section 700 Commission Amount

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("HUDToNa...
by bandorganman
Fri Dec 03, 2021 1:12 pm
Forum: Shell (User Interface)
Topic: Entering tax information for city/town and county
Replies: 11
Views: 7323

Re: Entering tax information for city/town and county

I figured it out. I was adding a new property instead of using the one that comes with the order. The default property comes with three taxes, but if a new property is added, it does not come with these three taxes by default, they must be added. I changed the code to use the default property and al...
by bandorganman
Wed Dec 01, 2021 8:53 pm
Forum: Shell (User Interface)
Topic: Entering tax information for city/town and county
Replies: 11
Views: 7323

Re: Entering tax information for city/town and county

What is wrong with this code? IOrderItem property = ((IOrder)o).CreateNew("Property"); properties.Add(property); IList taxes = (IList)property.GetProperty("Taxes"); if (hb1.Hud106 > 0) { IOrderItem cityTax = taxes.Cast<IOrderItem>() .Where(t => t.GetType().Name == "CityTax&q...
by bandorganman
Wed Nov 24, 2021 11:49 am
Forum: Shell (User Interface)
Topic: Date Formats for SetProperty
Replies: 2
Views: 3286

Re: Date Formats for SetProperty

Thank you.
by bandorganman
Tue Nov 23, 2021 9:24 pm
Forum: Shell (User Interface)
Topic: BuyerSellerType
Replies: 6
Views: 4266

Re: BuyerSellerType

Thanks Bob, it took some digging and analyzing but I finally figured that out. I now have a good understanding of how to communicate with the API. Everything seems to have fallen into place and is making sense. I had one other question though and have entered it in a new post.
by bandorganman
Tue Nov 23, 2021 8:42 pm
Forum: Shell (User Interface)
Topic: Date Formats for SetProperty
Replies: 2
Views: 3286

Date Formats for SetProperty

How do I enter a date? Standard date formats do not seem to work. if (hb1.Hud106 > 0) { IOrderItem cityTax = taxes.Cast<IOrderItem>() .Where(t => t.GetType().Name == "CityTax") .FirstOrDefault(); //cityTax.SetProperty("TaxAmountComputeMethod", "2"); IOrderItem btx = (IO...
by bandorganman
Tue Nov 09, 2021 3:57 pm
Forum: Shell (User Interface)
Topic: BuyerSellerType
Replies: 6
Views: 4266

Re: BuyerSellerType

Thanks, that worked. Now, for the same code above, I get an error when trying to enter the state into an address. How do I enter the state? Cannot find the information in the SDK.