You are viewing limited content. For full access, please sign in.

Question

Question

Laserfiche Connector - Working with Window Title and URL

asked on June 10, 2015

I have a website which has a static url regardless of which section, or form, the user navigates to. This results in the connector icon showing all the time. The window title changes so I've been trying to key off that.  I've been able to conditionally load the connector icon by editing the xml and adding in the wtitle property to the AppDef tag, for other sites, just not the one I'm working with.

 

By default connector profiles will load based on window title or url address and has support for .net regular expressions.

 

Since the window title of internet explorer windows are a combination of the html title and - Internet Explorer, the following keys work.

    <AppDef wtitle="Home - Laserfiche Answers - Internet Explorer" url="https://answers.laserfiche.com/" pname="iexplore" wclass="IEFrame">
<AppDef wtitle="Google - Internet Explorer" url="https://www.google.com/" pname="iexplore" wclass="IEFrame">

 

This format works for every instance I've tried except the one I'm trying to get it to work with ;)

 

Window Title: Enter Voucher - Payment Information - Internet Explorer

URL: http://servername:port/jde/E1Menu.maf?jdeowpBackButtonProtect=PROTECTED

*servername and port have been censored

 

To recap, if I use just the url, it works, but since the application's url is static, the icon persists throughout every form and screen. The title changes and I wish to key off that but for some reason I am unable to. I've compared both the title in process explorer and the specified document title on the generated page <head><title>Enter Voucher - Payment Information</title> and tried different variations with regular expressions to try and rule out unseen characters.

 

Any ideas?

0 0

Answer

SELECTED ANSWER
replied on June 14, 2015

Hi Carl,

My applogies about the wrong comment for the Name attibute in Root element. That might not be the same with the window title LFC is looking for.

In your case, it's probably because the space in your window title is the html formating space (&nbsp;). You can try the following regex in your window title.

Enter.*Voucher.*-.*Payment.*Information - Internet Explorer

If the issue still persists, I would recommend creating a support case for this and submit profile, log and screenshots of your webpage along with the case.

0 0

Replies

replied on June 10, 2015

For example, this page works w/ a connector profile using the following appdef key:

    <AppDef wtitle="Laserfiche Connector - Working with Window Title and URL - Laserfiche Answers - Internet Explorer" url="https://answers.laserfiche.com/questions/78720/Laserfiche-Connector--Working-with-Window-Title-and-URL" pname="iexplore" wclass="IEFrame">

Changing the title in the key by adding or removing words, will cause the profile to not load, which would be desired behavior.

0 0
replied on June 11, 2015

Hi Carl,

How did you get the window title for your target dialog? Can you confirm first if it is the corret window title? You can launch the Test Utility from the autorun install start page, drag to target window, the window tiltle will show up there. If it is cutoff in the readonly box, you can navigate to Libraries\Documents\Laserfiche Connector and open the correspoding xml file. The Name attribute in Root is the window tittle LFC is looking for.

Since the profile is an XML file, I also recommend editing it with XML editor instead of notepad. XML eidtor will do some character escaping automatically so that you don't have to worry about some special characters in your window title.

0 0
replied on June 12, 2015

Hi Jie,

 

Thanks for the response.

 

I got the window title by looking at process explorer and then confirming by opening the source web page and grabbing the information between the <title> </title> tags and adding " - Internet Explorer" after it.

 

Using the test utility, the window title is cut off like you mentioned. The corresponding xml file gives the following root element:

<Root ClassName="Shell DocObject View" Name="" NativeWindowHandle="67324" Top="78" Left="0" Bottom="962" Right="1920" Digest="-Root-Shell DocObject View-----" Id="42,67324">

In the log file:

6/12/2015 08:21:43 344 [1] INFO  LFC Test Utility - 9.0.1.620
6/12/2015 08:21:43 547 [1] INFO  Svc.GlobalResource - load js resource to memory
6/12/2015 08:21:43 547 [1] INFO  Svc.GlobalResource - load jquery
6/12/2015 08:21:43 547 [1] INFO  Svc.GlobalResource - jquery loaded
6/12/2015 08:21:43 547 [1] INFO  Svc.GlobalResource - load find element js
6/12/2015 08:21:43 547 [1] INFO  Svc.GlobalResource - find element js loaded
6/12/2015 08:21:43 547 [1] INFO  Svc.GlobalResource - js resource loaded
6/12/2015 08:21:43 625 [1] ERROR Svc.UIAutomationClientSideProviders - there is an error to initialize the JAB API
System.DllNotFoundException: Unable to load DLL 'windowsaccessbridge-64.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
   at Laserfiche.Connector.JABProxy.JABAPI.Windows_run()
   at Laserfiche.Connector.JABProxy.UIAutomationClientSideProviders.InitializeProvider()
6/12/2015 08:21:50 676 [1] DEBUG Svc.AutomationUIUtil - start ie url
6/12/2015 08:21:50 676 [1] DEBUG Svc.AutomationUIUtil - found ie url http://censoredservername:censoredport/jde/E1Menu.maf?jdeowpBackButtonProtect=PROTECTED
6/12/2015 08:21:50 707 [8] DEBUG Svc.ControlTreeConverter - pre processing element Enter Voucher - Payment Information - Internet Explorer
6/12/2015 08:21:50 707 [8] DEBUG Svc.ControlTreeConverter - pre processing element 
6/12/2015 08:21:50 707 [8] DEBUG Svc.ControlTreeConverter - pre processing element Navigation Bar
6/12/2015 08:21:50 707 [8] DEBUG Svc.ControlTreeConverter - pre processing element 
6/12/2015 08:21:50 707 [8] DEBUG Svc.ControlTreeConverter - pre processing element 
6/12/2015 08:21:50 723 [8] DEBUG Svc.ControlTreeConverter - pre processing element 
6/12/2015 08:21:50 723 [8] DEBUG Svc.ControlTreeConverter - pre processing element 
6/12/2015 08:21:50 723 [8] DEBUG Svc.ControlTreeConverter - pre processing element ITBarHost
6/12/2015 08:21:50 723 [8] DEBUG Svc.ControlTreeConverter - pre processing element Enter Voucher - Payment Information - Internet Explorer
6/12/2015 08:21:50 723 [8] DEBUG Svc.ControlTreeConverter - pre processing element System
6/12/2015 08:21:50 723 [8] DEBUG Svc.ControlTreeConverter - pre processing element Minimize
6/12/2015 08:21:50 723 [8] DEBUG Svc.ControlTreeConverter - pre processing element Restore
6/12/2015 08:21:50 723 [8] DEBUG Svc.ControlTreeConverter - pre processing element Close
6/12/2015 08:21:50 723 [8] DEBUG Svc.ControlTreeConverter - pre processing element 
6/12/2015 08:21:50 723 [8] DEBUG Svc.ControlTreeConverter - pre processing element Address Bar
6/12/2015 08:21:50 723 [8] DEBUG Svc.ControlTreeConverter - pre processing element 
6/12/2015 08:21:50 723 [8] DEBUG Svc.ControlTreeConverter - pre processing element 
6/12/2015 08:21:50 723 [8] DEBUG Svc.ControlTreeConverter - pre processing element Menu Bar
6/12/2015 08:21:50 723 [8] DEBUG Svc.ControlTreeConverter - pre processing element 
6/12/2015 08:21:50 723 [8] INFO  Svc.ControlTreeConverter - start

 

Of note, the root element for a connector profile that works with both window title and url is also "":

<Root ClassName="Shell DocObject View" Name="" NativeWindowHandle="67606" Top="78" Left="0" Bottom="962" Right="1920" Digest="-Root-Shell DocObject View-----" Id="42,67606">

 

:/

0 0
replied on June 15, 2015

Jie,


You are right on!  That worked like a charm. Thank you so much and thank you for explaining what was going on!

 

 

Cheers,

Carl

 

 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.