AutoVue Hotspotting Part 1: Document Search Term Highlighting
By Jeff Singer-Oracle on Apr 25, 2011
One of the coolest new features introduced in AutoVue 20.1 is the ability to apply hotspots to documents. This new hotspotting framework allows us to dynamically define certain parts of some document formats as hotspots and assign them their own highlighting, click/double-click behavior, custom right mouse menu options and more. This allows us to enable bi-directional, action-oriented linkage of the visual representation of assets or products to data in enterprise systems like Enterprise Resource Planning (ERP) or Asset Lifecycle Management (ALM).
For this first hotspotting blog post, I'll focus on one of the simplest applications of these hotspots - document search term highlighting - which leverages only the highlighting aspect of hotspotting framework.
Let's say that before AutoVue is launched from some back end Document Management System, the user had entered some criteria to find a list of documents. The user was then presented with a list of documents in various formats. He'll want to launch these documents in AutoVue, but keep the context of his original search in the DMS. When AutoVue displays the document, the original search terms can be passed and AutoVue can then leverage the new hotspotting APIs to find all occurrences in the document and highlight them. This allows him to quickly find what he was looking for in the first place, without having to perform a second search after the document is displayed.
The screenshot below shows a PDF with the terms Oracle, AutoVue, Content and document highlighted in different colors. Note that I've also specified that the search is case sensitive and only to search for complete words, not partials. Click for full size.
For the developers out there, these APIs use Java's Regex capabilities, so not only can we search for particular text, but we can also filter on case sensitivity and whole or partial words. In other use cases, you can get much more advanced and even search on certain patterns, like highlighting all phone, credit card or social security numbers in a document as well.
This is really just scratching the surface of the new hotspotting capabilities. In future blog posts, we'll focus on more advanced applications, like triggering work orders or ordering parts by clicking on part numbers in a drawing.