MIDAS#9 Out of Notes Part 2: Capsule Views (Midas Rich Text LSX)
Out Of Notes, part 2: Capsule Views shows one of the ways Midas V5 extends the options for taking data out of Notes. Using the same sample database, Curb Appeal, which we used in Part 1, we select four documents and export them together to the Web Archive format (.mht). A small navigation bar allows us to jump from document to document, or we can simply scroll through them. This capsule view approach allows us to send a single file with all the images, formatting, etc. from the collection of documents included. Redundant data such as the agent image used multiple times are only included once, thus saving space.
The agent used for the export is shown below. This agent will only work in Midas V5.00 (to be released soon).
This extended sample requires Midas 5.00 or higher.
AGENT: Export selected documents to capsule Web Archive (.mht)
' *** Get the collection and cycle through each selected document
Set db = s.Currentdatabase
Set coll = db.UnprocessedDocuments
Set doc = coll.GetFirstDocument
While Not (doc Is Nothing)
If gcoll.AddDocBackend(doc.Handle) Then
Print "Added "+doc.StreetAddress(0)
Set doc = coll.GetNextDocument(doc)
Call gcoll.ExportToMIME("c:\demo\CurbAppeal.mht", "", "", _
|MakeURLHotspots='Yes' charset="iso−8859‒1" AddNewlines='CRLF' RespectHiddenFormulas='Yes'|)
Rough transcript (used for Closed Captions as well):
This is Ben Langhinrichs of Genii Software with Out Of Notes, part 2: Capsule Views. In this, I show how Midas V5 extends the ability to create a snapshot of Notes data.
As I showed you in Part 1, the Curb Appeal database is here and there's a listing, and we can export a snapshot of a single document, and look at it as a single file form of one document showing all the data.
But what if we want to take a look at multiple documents at one time. So, let's say we want to take these four documents, step through them, and we want to send them to a customer but just as a single file.
For this, Midas introduces the idea of "capsule views". We'll export these as a capsule Web Archive, so also a .MHT file. And if we open that up, what you'll see looks very similar except with a navigation bar. If you click on the navigation bar, you'll simply step through the different documents all put together. This is still a single file so you can send it to a customer, and they can get a snapshot of a group of data, with generally not more than about 20 documents.
This is the code. As you can see, it's fairly simple. So again, this is one of the ways Midas 5 is extending the ability to create a snapshot of data and take it out of Notes. Thank you very much.