Ben Langhinrichs

Photograph of Ben Langhinrichs

E-mail address - Ben Langhinrichs

Recent posts

Sat 25 Jul 2020

Kyrtool hangs while generating a keyring file for Domino

Sat 18 Jul 2020

Enduring favorite - Getting Data out of Notes (for whatever reason)

Thu 9 Jul 2020

Maximizing power while minimizing code and effort

August, 2020
02 03 04 05 06 07 08
09 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31

Search the weblog

Genii Weblog

Method to the Madness: Connecting to an XPage with Midas

Tue 8 Feb 2011, 10:04 AM

by Ben Langhinrichs
Over the next few days, as I prepare for the EntwicklerCamp conference in Germany, I plan to describe an interesting fusion of technologies. The technologies involved are XPages, web editors and the Midas Rich Text LSX.  I won't tell you what the project is, although I am happy to entertain guesses, but I will describe the Midas methods involved and how they might work together to help in this fusion. Those at EntwicklerCamp will have an opportunity to see the project working, but soon after that, I should have a demo for others.

The first method is simple.  We need to connect to an XPage design element, or possibly clone one, so we will use the GeniiRTItem.ConnectXPage method.

ConnectXPage method  

Version added: 4.30

Connects the GeniiRTItem to the rich text $FileData field on the specified XPage (or the cloned copy).  The XPage must exist, or the XPage to clone must exist, or this method will fail.  

Note that if you attempt to modify the XPage and you do not have sufficent access, the Save will fail.  You may also use this method with the optional cloneName parameter to create a copy of an XPage that you can then modify.

Defined in
GeniiRTItem class
Call geniiRTItem.ConnectXPage(server$, filepath$,xpage_name$cloneName$ )
String.  The server for the rich text field.  This should be a blank string, "", for a local database.  If a NotesDatabase object is instantiated, this is the Server property.
String.  The pathname of the database, relative to the Notes data directory.  If a NotesDatabase object is instantiated, this is the FilePath property.
String.  The name of the xpage for which the $FileData field should be connected.  If the form does not exist in the specified database, this method will fail.
String.  Optional.  If specified, the xpage will be cloned, and the new copy will be given this cloneName. The connection will then be to the $FileData of this unsaved copy of the original xpage, and the title will be changed.

Dim s As New NotesSession
Dim db As NotesDatabase

Dim rtxpage As New GeniiRTItem

Set db = s.CurrentDatabase

Call rtpage.ConnectXPage(db.Server, db.FilePath, "MyXPage")

' *** Manipulate XPage as needed


Copyright 2011 Genii Software Ltd.

What has been said:

No documents found