Are you preparing to modernize your IBM Notes and Domino applications or migrate off the platform? Notes and Domino have provided a lot of proprietary design concepts over the years. Do you know where they're in use or what the impact will be on your modernization and migration projects?
Watch this webinar to see how using the search terms feature within Teamstudio Adviser can help you catalog the areas of possible problems. Additionally, learn how to use Teamstudio Configurator to pinpoint exactly where the problem areas are in your applications.
8. Get Keyword List from View Column
JavaScript
Var lookupList = dbColumn(‘http://11.22.33.44’,’folder/db.nsf’,’Keywords’,1)
// but you need the func.on “dbColumn” first!
<script type=‘text/javascript’ language=‘javascript’>
function dbColumn(server, path, view, column) {
xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async = false;
var pos = 0;
currURL = (document.location.href).toLowerCase();
if (trim(server) == "") {
pos = currURL.indexOf(' ://' );
if (pos < 0)
server = "http://11.22.33.44" //
PUT YOUR SERVERNAME HERE
else {
pos += 3;
pos = currURL.indexOf(' /' , pos);
LotusScript
Dim session As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Dim nav As NotesViewNavigator
Dim entry As NotesViewEntry
Dim x As Integer
Dim lookupList() As String
Set db=session.Getdatabase("11.22.33.44","folderdb.nsf")
Set view=db.Getview("Keywords")
Set nav=view.Createviewnav()
Set entry=nav.Getfirst()
While Not entry Is Nothing
ReDim Preserve lookupList(x)
lookupList(x)=entry.Columnvalues(0)
x=x+1
Set entry=nav.Getnext(entry)
Wend
@Formula
lookupList := @DBColumn(“NoCache”;”11.22.33.44”:”folderdb.nsf”;”Keywords”;1);
9. JavaScript ConDnued server = currURL.substring(0, pos)
}
}
if (trim(path) == "") {
if (pos > 0) {
newPos = currURL.indexOf(' .nsf' , pos);
if (newPos > 0) {
path = currURL.substring(pos + 1, newPos + 4)
}
}
}
if (!isNaN(column))
column -= 1;
vurl = trim(server) + "/" + trim(path) + "/" + view +
"?readviewentries&login=1&count=9999";
xmlDoc.load(vurl);
nodes = xmlDoc.documentElement.childNodes;
temp = new Array(nodes.length);
var j = 0;
for (var i = 0; i < nodes.length; i++) {
temp[j] = nodes.item(i).childNodes.item(column).text;
j++;
}