Add and/or Update Title Exceptions and Requirements

Discussions related to SoftPro Select user interface development.

Moderator: Phil Barton

Post Reply
AdrianP
Posts: 2
Joined: Mon Sep 14, 2020 10:51 am

Add and/or Update Title Exceptions and Requirements

Post by AdrianP » Mon Sep 14, 2020 11:37 am

I am attempting to use the Shell to add a Title Exception or Requirement (or update the existing text). I am able to get the existing text however if I try to update the text I get an error An exception of type 'System.MemberAccessException' , "Cannot Access Member". This may not be the proper way to Add/Edit Exceptions and Requirements, so if there is a better way to accomplish the add/edit of title expectations/requirements I am open to anything that works!

string FirmFile;
FirmFile = "10-10654-PUR";
IOrderInfo Search = os.Orders.Where(t => t.Number == FirmFile).FirstOrDefault();
if (Search != null)
{
IOrder order = ClosingSiteC.SPSelect.os.OpenOrder(Search, OrderEditMode.ReadWrite);
IOrderItem title = (IOrderItem)order.GetProperty("Title");
IList Commitments = (IList)title.GetProperty("Commitments");
foreach (ICommitment Commitment in Commitments)
{
dynamic Excep = (IList)Commitment.GetProperty("Exceptions");
foreach (dynamic E in Excep)
{
var ETet = E.Text;
E.Text = "Change Exception Text";
}
}
}

BobRichards
Posts: 1009
Joined: Wed Jan 15, 2014 3:50 pm
Location: Raleigh, NC
Contact:

Re: Add and/or Update Title Exceptions and Requirements

Post by BobRichards » Mon Sep 14, 2020 5:30 pm

Is the account that is logged into Select by your code do the changes manually in the Select GUI? I want to rule out any permission issues. Log into Select with the same account and test it.
Bob Richards, Software Developer, SoftPro

AdrianP
Posts: 2
Joined: Mon Sep 14, 2020 10:51 am

Re: Add and/or Update Title Exceptions and Requirements

Post by AdrianP » Mon Sep 14, 2020 5:58 pm

That was the issue... I had changed the test account permissions and missed switching back.
Thanks for the assistance.

Post Reply