TitleCompany Hidden Fields

Discussions concerning general integration topics.

Moderator: Phil Barton

Post Reply
User avatar
uwdoug79
Posts: 77
Joined: Wed Aug 07, 2013 12:43 pm
Location: Earth
Contact:

TitleCompany Hidden Fields

Post by uwdoug79 » Fri May 03, 2019 12:17 pm

I am trying to correct a logo problem occurring with the Titlecompany record. In order to get this to work I am being asked to set the values for LogoSize and LogoWidthHTML that exist on the company record. I am able to see the field come back to my object in the query of the company lookup code but the object that I have instantiated is complaining that there is no field in the object with that name:

Code: Select all

titlecompany.LogoImage = (Image)myRow["LogoImage"].Value;   // this works
titlecompany.LogoSize = Convert.ToString(myRow["LogoSize"]);  // this throws an error
titlecompany.LogoWidthHTML = Convert.ToString(myRow["LogoWidthHTML"]);  // this also throws an error
The exact error is "TitleCompany does not contain a definition for LogoSize"

I am assuming it is because the field is marked hidden in softpro. Is there a way to set the value on hidden fields?

Doug
Doug Hamilton
CHICAGO TITLE
20825 SWENSON DR SUITE 300 WAUKESHA, WI 53186
P: 262-796-3808 F: 262-796-3888
EMAIL: Doug.Hamilton@fnf.com
www.wi.ctic.com | www.chicagoagent.com | www.etitle.ws

User avatar
uwdoug79
Posts: 77
Joined: Wed Aug 07, 2013 12:43 pm
Location: Earth
Contact:

Re: TitleCompany Hidden Fields

Post by uwdoug79 » Fri May 03, 2019 1:23 pm

I may have answered my own question.

Code: Select all

                                        if (tccodes.HasProperty("LogoSize_FNF#") && tccodes.GetIsSupported("LogoSize_FNF#")) { tccodes["LogoSize_FNF#"] = Convert.ToString(myRow["LogoSize"]).Trim(); }
                                        if (tccodes.HasProperty("LogoWidthHTML_FNF#") && tccodes.GetIsSupported("LogoWidthHTML_FNF#")) { tccodes["LogoWidthHTML_FNF#"] = Convert.ToString(myRow["LogoWidthHTML"]).Trim(); }

I believe this will be the correct syntax.

The dev environment is timing out though so I can't test at this time.
Doug Hamilton
CHICAGO TITLE
20825 SWENSON DR SUITE 300 WAUKESHA, WI 53186
P: 262-796-3808 F: 262-796-3888
EMAIL: Doug.Hamilton@fnf.com
www.wi.ctic.com | www.chicagoagent.com | www.etitle.ws

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

Re: TitleCompany Hidden Fields

Post by BobRichards » Fri May 03, 2019 1:55 pm

You just have to make sure you use the same spelling for the Custom Fields as was used to create them - including the pound signs at the end.
Bob Richards, Software Developer, SoftPro

Post Reply