Search found 68 matches

by bandorganman
Tue Nov 09, 2021 12:48 pm
Forum: Shell (User Interface)
Topic: BuyerSellerType
Replies: 6
Views: 4951

BuyerSellerType

How is the BuyerSellerType enum entered? I have the following code but it gives a cast error on trying to set the property. IOrderItem newby1 = ((IOrder)o).CreateNew("Buyer"); contacts.Add(newby1); if (buy.BUYTYPE == "1") { newby1.SetProperty("BuyerSellerType", "In...
by bandorganman
Fri Oct 29, 2021 11:36 am
Forum: Shell (User Interface)
Topic: Order Contacts
Replies: 5
Views: 3695

Re: Order Contacts

Thanks! That clears a lot of things up!
by bandorganman
Thu Oct 28, 2021 2:09 pm
Forum: Shell (User Interface)
Topic: Order Contacts
Replies: 5
Views: 3695

Re: Order Contacts

Another problem is with entering address information to a contact. Name goes in fine but when I try to set Address1 I get an error. IList contacts = (IList)((IOrder)o).GetProperty("Contacts"); IOrderItem newAtty = ((IOrder)o).CreateNew("Attorney"); contacts.Add(newAtty); newAtty....
by bandorganman
Wed Oct 27, 2021 5:21 pm
Forum: Shell (User Interface)
Topic: Order Contacts
Replies: 5
Views: 3695

Re: Order Contacts

Thanks for that explanation! Big help!
by bandorganman
Wed Oct 27, 2021 12:45 pm
Forum: Shell (User Interface)
Topic: Order Contacts
Replies: 5
Views: 3695

Order Contacts

I get the following error: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'Order' does not contain a definition for 'GetProperty' at CallSite.Target(Closure , CallSite , Object , String ) at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1) at Soft...
by bandorganman
Mon Oct 11, 2021 5:09 pm
Forum: Shell (User Interface)
Topic: HUD Section 1200
Replies: 25
Views: 24081

Re: HUD Section 1200

The code: IOrderItem line1202 = (IOrderItem)lines[1202]; if (hb2.Hud1201D > 0 || hb2.Hud1201M > 0 || hb2.Hud1201R > 0) { IOrderItem charge = (IOrderItem)line1202.GetProperty("Charge"); IOrderItem fee = o.CreateNew("Hud1202ChargeFee"); charge.GetProperty<IList>("Fees").A...
by bandorganman
Mon Oct 11, 2021 5:00 pm
Forum: Shell (User Interface)
Topic: HUD Section 1200
Replies: 25
Views: 24081

Re: HUD Section 1200

Yes, Studio gives me this error for the code you sent me to add fees to line 1202:
Screenshot - 10_11_2021 , 4_53_15 PM.jpg
Line 4946 throws the error shown in the attachment. Why is this happening?
by bandorganman
Mon Oct 11, 2021 3:05 pm
Forum: Shell (User Interface)
Topic: HUD Section 1200
Replies: 25
Views: 24081

Re: HUD Section 1200

Thanks, but I am already doing this. Here is the CreateOrder method on Form1.cs which has been tested and it works: private void CreateOrder() { using (SelectServer ss = new SelectServer(new Uri("http://localhost:8080"))) { string reason; if (!ss.TryAuthenticate(out reason)) { Results.Text...
by bandorganman
Mon Oct 11, 2021 12:49 pm
Forum: Shell (User Interface)
Topic: HUD Section 1200
Replies: 25
Views: 24081

Re: HUD Section 1200

Here are my using statements and constructor. What am I missing? using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Data.Odbc; using System.Text; using System.Threading.Tasks; using System.Windows.Form...
by bandorganman
Mon Oct 11, 2021 9:55 am
Forum: Shell (User Interface)
Topic: HUD Section 1200
Replies: 25
Views: 24081

Re: HUD Section 1200

System.Collections is there. I always include it as I use collections extensively.