Prior Policy fields

Discussions related to ReadyDoc development.
Post Reply
cklahr
Posts: 71
Joined: Tue Oct 27, 2009 3:32 am

Prior Policy fields

Post by cklahr »

I am trying to create a document, basing some of it on Prior Policy information. First of all, how can I pull up the tab in a file? Under which title? The only way I've been able to open it so far, was through the field code browser. Please advise.

In addition, something is not working right. See below IF statement.

<IF (Not IsEmpty ({{Order.Title.OwnersPolicy[1].PriorPolicy.CoverageAmount}}) OR {{Order.Title.LoanPolicy[1].PriorPolicy.CoverageAmount}})>full search [ ] Policy [X]<ELSE> full search [X] Policy [ ]</IF>

Thanks.
Mark McKenna

Re: Prior Policy fields

Post by Mark McKenna »

There is a Prior Policies screen that you access by way of hyperlinks on the Title Insurance Premiums screen. Note that each policy can now have more than one prior policy.

As for the document logic, the problem is that the right-hand side of the OR statement needs to evaluate as a boolean but in its current form it is evaluating as decimal. I believe that you're wanting to apply the NOT ISEMPTY function against each data item individually, as so:

Code: Select all

<IF ( Not IsEmpty ( {{Order.Title.OwnersPolicy[1].PriorPolicy.CoverageAmount}} ) OR Not IsEmpty( {{Order.Title.LoanPolicy[1].PriorPolicy.CoverageAmount}} ) )>full search [ ] Policy [X]<ELSE> full search [X] Policy [ ]</IF>
Since each policy now supports multiple prior policies, you may run into cases of ambiguity when trying to access the "PriorPolicy" data item off of both "LoanPolicy" and "OwnersPolicy", as in your example. It is probably best to add the [1] filter to the PriorPolicy data item identifier, to avoid any sort of manual disambiguation effort on the part of the user. I think it still does what you want, unless its possible that a first prior policy's coverage amount would be empty, yet a second one would not.
cklahr
Posts: 71
Joined: Tue Oct 27, 2009 3:32 am

Re: Prior Policy fields

Post by cklahr »

Thank you very much.

When I try opening the Title Insurance Premiums tab, I get a message "Failed to Open Screen. The given key was not present in the dictionary". Would you know why this would be happening?
Mark McKenna

Re: Prior Policy fields

Post by Mark McKenna »

When that occurs, you should also have a rather verbose error event added to your Windows event log. If you would open up your event viewer and provide the entire error message (with stack trace), that would help us determine exactly what is happening.
cklahr
Posts: 71
Joined: Tue Oct 27, 2009 3:32 am

Re: Prior Policy fields

Post by cklahr »

See attached. Not sure if this is what you wanted to see. Please advise.
Attachments
error message.doc
(124 KiB) Downloaded 54 times
Mark McKenna

Re: Prior Policy fields

Post by Mark McKenna »

When you get the error, go to Start->Run and type eventvwr. Click OK, and the event viewer will open. Double-click the Application log from the list on the left. In the new list that appears, you will see all the application events that have been logged. Near the very top you should see an Error event with the Source as "SoftPro Select". Double-click the row to open it, and from the dialog box that opens click the Copy button (below the arrow buttons). Paste that information into your reply here. Let us know if you have any problems.
cklahr
Posts: 71
Joined: Tue Oct 27, 2009 3:32 am

Re: Prior Policy fields

Post by cklahr »

Event Type: Error
Event Source: SoftPro Select
Event Category: None
Event ID: 0
Date: 1/14/2011
Time: 3:12:05 AM
User: WORKGROUP\cklahr
Computer: TS3
Description:
Error: The given key was not present in the dictionary.
Stack Trace:
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at SoftPro.OrderTracking.Client.LookupMap.get_Item(String overlayContext, String overlayPath)
at SoftPro.OrderTracking.Controls.SnapSections.TitlePremiumSelectionSnapSection.GetUnderwriterTable()
at SoftPro.OrderTracking.Controls.SnapSections.TitlePremiumSelectionSnapSection.BindData()
at SoftPro.UI.Base.SnapSectionBase.SetContext(IBusinessObject context)
at SoftPro.UI.Base.SelectorSnapSectionContainer.OnSelectionChanged(IBusinessObject nowSelected)
at SoftPro.OrderTracking.Controls.SnapSections.TitleInsurancePremiumGridSnapSection.OnSelectionChanged(IBusinessObject nowSelected)
at SoftPro.OrderTracking.Controls.SnapSections.TitleInsurancePremiumGridSnapSection._gridTitleInsurancePremium_SelectionChanged(Object sender, EventArgs e)
at SoftPro.OrderTracking.Controls.SnapSections.TitleInsurancePremiumGridSnapSection.BindData()
at SoftPro.UI.Base.SnapSectionBase.SetContext(IBusinessObject context)
at SoftPro.UI.Base.SelectorSnapSectionContainer.SetContext(IBusinessObject context)
at SoftPro.UI.Base.SnapSectionContainerBase.SetContext(IBusinessObject context)
at SoftPro.UI.Base.ScreenContainer.OpenScreenEx(String screenName, IBusinessObject context, ScreenDefinition screenDef)
at SoftPro.UI.Base.ScreenContainer.OpenScreen(String screenName, IBusinessObject context)
at SoftPro.OrderTracking.Controls.OrderEditor.OpenScreenEx(String screenName, String screenKey, IBusinessObject iContext, Boolean openInNewTab, OpenScreenType type)
XML Log:
<ILExceptionData>
<Point module="CommonLanguageRuntimeLibrary" classFull="System.ThrowHelper" methodName="ThrowKeyNotFoundException" methodSignature="Void ThrowKeyNotFoundException()" methodToken="0x60000dc" ILOffset="5" />
<Point module="CommonLanguageRuntimeLibrary" classFull="System.Collections.Generic.Dictionary`2" methodName="get_Item" methodSignature="TValue get_Item(TKey)" methodToken="0x600193c" ILOffset="0" />
<Point module="SoftPro.OrderTracking.Client.dll" classFull="SoftPro.OrderTracking.Client.LookupMap" methodName="get_Item" methodSignature="SoftPro.OrderTracking.Client.ILookupMapEntry get_Item(System.String, System.String)" methodToken="0x6003fc0" ILOffset="0" />
<Point module="SoftPro.OrderTracking.Controls.dll" classFull="SoftPro.OrderTracking.Controls.SnapSections.TitlePremiumSelectionSnapSection" methodName="GetUnderwriterTable" methodSignature="SoftPro.OrderTracking.Client.ILookupTable GetUnderwriterTable()" methodToken="0x600074c" ILOffset="18" />
<Point module="SoftPro.OrderTracking.Controls.dll" classFull="SoftPro.OrderTracking.Controls.SnapSections.TitlePremiumSelectionSnapSection" methodName="BindData" methodSignature="Void BindData()" methodToken="0x6000752" ILOffset="0" />
<Point module="SoftPro.UI.Base.dll" classFull="SoftPro.UI.Base.SnapSectionBase" methodName="SetContext" methodSignature="Void SetContext(SoftPro.BusinessObjects.Base.IBusinessObject)" methodToken="0x60001db" ILOffset="131" />
<Point module="SoftPro.UI.Base.dll" classFull="SoftPro.UI.Base.SelectorSnapSectionContainer" methodName="OnSelectionChanged" methodSignature="Void OnSelectionChanged(SoftPro.BusinessObjects.Base.IBusinessObject)" methodToken="0x6000101" ILOffset="31" />
<Point module="SoftPro.OrderTracking.Controls.dll" classFull="SoftPro.OrderTracking.Controls.SnapSections.TitleInsurancePremiumGridSnapSection" methodName="OnSelectionChanged" methodSignature="Void OnSelectionChanged(SoftPro.BusinessObjects.Base.IBusinessObject)" methodToken="0x6001164" ILOffset="42" />
<Point module="SoftPro.OrderTracking.Controls.dll" classFull="SoftPro.OrderTracking.Controls.SnapSections.TitleInsurancePremiumGridSnapSection" methodName="_gridTitleInsurancePremium_SelectionChanged" methodSignature="Void _gridTitleInsurancePremium_SelectionChanged(System.Object, System.EventArgs)" methodToken="0x6001168" ILOffset="0" />
<Point module="SoftPro.OrderTracking.Controls.dll" classFull="SoftPro.OrderTracking.Controls.SnapSections.TitleInsurancePremiumGridSnapSection" methodName="BindData" methodSignature="Void BindData()" methodToken="0x6001161" ILOffset="224" />
<Point module="SoftPro.UI.Base.dll" classFull="SoftPro.UI.Base.SnapSectionBase" methodName="SetContext" methodSignature="Void SetContext(SoftPro.BusinessObjects.Base.IBusinessObject)" methodToken="0x60001db" ILOffset="131" />
<Point module="SoftPro.UI.Base.dll" classFull="SoftPro.UI.Base.SelectorSnapSectionContainer" methodName="SetContext" methodSignature="Void SetContext(SoftPro.BusinessObjects.Base.IBusinessObject)" methodToken="0x6000103" ILOffset="108" />
<Point module="SoftPro.UI.Base.dll" classFull="SoftPro.UI.Base.SnapSectionContainerBase" methodName="SetContext" methodSignature="Void SetContext(SoftPro.BusinessObjects.Base.IBusinessObject)" methodToken="0x60000f4" ILOffset="55" />
<Point module="SoftPro.UI.Base.dll" classFull="SoftPro.UI.Base.ScreenContainer" methodName="OpenScreenEx" methodSignature="SoftPro.UI.Base.ISnapSectionScreen OpenScreenEx(System.String, SoftPro.BusinessObjects.Base.IBusinessObject, SoftPro.UI.Base.ScreenDefinition)" methodToken="0x600018c" ILOffset="80" />
<Point module="SoftPro.UI.Base.dll" classFull="SoftPro.UI.Base.ScreenContainer" methodName="OpenScreen" methodSignature="SoftPro.UI.Base.ISnapSectionScreen OpenScreen(System.String, SoftPro.BusinessObjects.Base.IBusinessObject)" methodToken="0x600018e" ILOffset="0" />
<Point module="SoftPro.OrderTracking.Controls.dll" classFull="SoftPro.OrderTracking.Controls.OrderEditor" methodName="OpenScreenEx" methodSignature="SoftPro.UI.Base.ISnapSectionScreen OpenScreenEx(System.String, System.String, SoftPro.BusinessObjects.Base.IBusinessObject, Boolean, SoftPro.OrderTracking.Common.OpenScreenType)" methodToken="0x60001dd" ILOffset="399" />
</ILExceptionData>


Call Stack:
at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at System.Diagnostics.TraceEventCache.get_Callstack()
at SoftPro.Select.LogTraceListener.OnLog(TraceEventCache eventCache, String message, TraceEventType eventType)
at SoftPro.Select.LogTraceListener.TraceEvent(TraceEventCache eventCache, String source, TraceEventType eventType, Int32 id, String message)
at System.Diagnostics.TraceInternal.TraceEvent(TraceEventType eventType, Int32 id, String format, Object[] args)
at System.Diagnostics.Trace.TraceError(String message)
at SoftPro.Select.Managers.ShellManager.HandleError(IWin32Window parent, String message, Boolean log, Exception ex)
at SoftPro.Select.Managers.ShellManager.SoftPro.Select.Shell.IShell.HandleError(String message, Boolean log, Exception ex)
at SoftPro.OrderTracking.Controls.OrderEditor.OpenScreenEx(String screenName, String screenKey, IBusinessObject iContext, Boolean openInNewTab, OpenScreenType type)
at SoftPro.OrderTracking.Controls.OrderEditor.OpenScreen(ExplorerBarItem b, Boolean openInNewTab)
at SoftPro.OrderTracking.Controls.OrderEditor.NavigateScreens_Impl(ExplorerBarItem explorerBarItem, Boolean closeCurrentScreen)
at SoftPro.OrderTracking.Controls.OrderEditor._explorerBar_ItemClick(Object sender, ItemEventArgs e)
at Janus.Windows.ExplorerBar.ExplorerBar.OnItemClick(ItemEventArgs e)
at Janus.Windows.ExplorerBar.ExplorerBar.i(ExplorerBarItem )
at Janus.Windows.ExplorerBar.ExplorerBarItem.InvokeOnClick()
at Janus.Windows.ExplorerBar.ExplorerBar.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at SoftPro.Common.Controls.CommonExplorerBar.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(ApplicationContext context)
at SoftPro.Select.Runtime.OnRun()
at SoftPro.Select.Runtime.Start()
at SoftPro.Select.Automation.EnvICE.Start()
at System.Runtime.Remoting.Messaging.Message.Dispatch(Object target, Boolean fExecuteInContext)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
at System.Runtime.Remoting.Messaging.ServerObjectTerminatorSink.SyncProcessMessage(IMessage reqMsg)
at SoftPro.Select.Shell.SynchronizationContextAspect.SyncProcessMessage(IMessage msg)
at System.Runtime.Remoting.Lifetime.LeaseSink.SyncProcessMessage(IMessage msg)
at System.Runtime.Remoting.Messaging.ServerContextTerminatorSink.SyncProcessMessage(IMessage reqMsg)
at System.Runtime.Remoting.Channels.CrossContextChannel.SyncProcessMessageCallback(Object[] args)
at System.Threading.Thread.CompleteCrossContextCallback(InternalCrossContextDelegate ftnToCall, Object[] args)
at System.Threading.Thread.InternalCrossContextCallback(Context ctx, IntPtr ctxID, Int32 appDomainID, InternalCrossContextDelegate ftnToCall, Object[] args)
at System.Threading.Thread.InternalCrossContextCallback(Context ctx, InternalCrossContextDelegate ftnToCall, Object[] args)
at System.Runtime.Remoting.Channels.CrossContextChannel.SyncProcessMessage(IMessage reqMsg)
at System.Runtime.Remoting.Proxies.RemotingProxy.CallProcessMessage(IMessageSink ms, IMessage reqMsg, ArrayWithSize proxySinks, Thread currentThread, Context currentContext, Boolean bSkippingContextChain)
at System.Runtime.Remoting.Proxies.RemotingProxy.InternalInvoke(IMethodCallMessage reqMcmMsg, Boolean useDispatchMessage, Int32 callType)
at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(IMessage reqMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at SoftPro.Select.Automation.EnvICE.Start()
at SoftPro.Select.Automation.EnvICE.Run(String rootSuffix, Boolean noSplash, Boolean setupMode, Boolean log, Boolean embedding, Dictionary`2 args, String freeArg)
at SoftPro.Select.Program.Main(String[] args)

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Mark McKenna

Re: Prior Policy fields

Post by Mark McKenna »

That's not right. Let's see what is going on:
1. What version of Select are you running?
2. Do you have an Underwriter lookup table assignment for the active profile? If so, is there a LookupCode field in it?
Post Reply