Lotus Notes — рабочий инструмент программиста.

Обсуждения программирования на Lotus Notes/Domino

Archive for Декабрь 26th, 2008

Open database listed in an email ( like GSX errors )

без комментариев

Sub Initialize
‘ posted to http://www.openntf.org/projects/codebin/codebin.nsf/CodeByDate/BB07663266C769D2862574F60054154B
‘ written by Mike Mortin, 20070830 Dim ws As New NotesUIWorkspace
Dim uiDoc As NotesUIDocument
Dim nServer As NotesName
Dim tempStr As String, fileList As String, server As String
Dim tempVar As Variant
Dim index As Integer
Const kDelim = " " ‘ get email content
Set uiDoc = ws.CurrentDocument
tempStr = uiDoc.FieldGetText("body") ‘ split and join to remove unwanted characters
tempVar = Split(tempStr, Chr(13)) ‘ new line characters
tempVar = Join(tempVar, kDelim)
tempVar = Split(tempVar, "’") ‘ single quotes
tempVar = Join(tempVar, kDelim) ‘ lastly, split into words
tempVar = Split(tempVar, kDelim) ‘ spaces ‘ server name is the next entry
Set nServer = New notesName(tempVar(3))
server = nServer.Common ‘ then parse through remaining entries to get all mailfiles listed
For index = Lbound(tempVar) To Ubound(tempVar)
Print tempVar(index)
If Instr( tempVar(index), ".nsf" ) > 0 Then
‘ add it to the list
tempStr = Left( tempVar(index), Instr( tempVar(index), "nsf") +2 )
fileList = fileList & tempStr & ","
End If
Next index ‘ now, did we find any mail files? If Len(fileList) > 0 Then
‘ make the list and tighen it up
tempVar = Split( fileList, "," )
tempVar = Arrayunique(tempVar)
tempVar = Fulltrim(tempVar) ‘ present and open the db
tempStr = ws.Prompt(4, "Select the database on " & server & " that you want to open.", "Click ‘Cancel’ to exit.", "", Split( fileList, "," ))
If tempStr <> "" Then Call ws.OpenDatabase(server, tempStr)
Else
Msgbox "No mailfiles detected"
End If
End Sub

Original source : http://www.openntf.org/projects/codebin/codebin.ns…

Написано lotusnotes

Декабрь 26, 2008 в 11:30

Опубликовано в Lotus Notes

Clear the Recent Contacts

без комментариев

Here is a quick little code that I added to the R8 Mail template to quickly purge the Recent Contacts in R8. It removes the documents from the local NAB & clears the Metadata from the local PC.

Original source : http://www.openntf.org/projects/codebin/codebin.ns…

Написано lotusnotes

Декабрь 26, 2008 в 11:30

Опубликовано в Lotus Notes

PromptMailTemplateUsed – Get information about the template your mail database inherits from.

без комментариев

[<pre>
Sub PromptMailTemplateUsed()
‘Written by John Smart John.Smart@GreyDuck.com
‘Submitted to OpenNTF on 30 Oct 2008
‘http://www.openntf.org/projects/codebin/codebin.nsf/CodeByDate/660570790A3B977B862574F2006E3E4F
Dim db As New NotesDatabase("", "")
Dim doc As NotesDocument
Dim strMsg As String
Dim strTemplateName As String
Dim strTemplateServerName As String
Dim strTemplateFileName As String Print "Finding your email database…"
Call db.OpenMail() Print "Verifying that your email database inherits from a template…"
strTemplateName = db.DesignTemplateName
If Len(strTemplateName) = 0 Then
Error 1000, "Your mail database doesn’t inherit it’s design from a template."
End If Print "Getting information about where your mail template inherits from…"
Set doc = db.GetDocumentByID("FFFF0010") ‘icon design element. Thanks to http://www.nsftools.com/tips/NotesTips.htm#defaultelements ‘Get template information stored in the icon design element. Thanks to http://www.notesninjas.com/#TemplateFileName
strTemplateServerName = doc.GetItemValue("$TemplateServerName")(0)
strTemplateFileName = doc.GetItemValue("$TemplateFileName")(0) strMsg = |Design Template Name: | + strTemplateName + |
Server: | + strTemplateServerName + |
File Path: | + strTemplateFileName + | NOTE: File Path is based on the server’s operating system, so a File Path of "/local/notes/data/mail8.ntf" would imply that your template is probably "mail8.ntf" in the root data directory on your server.| Print ""
Messagebox strMsg, 0, "Hints on where to find your mail template."
End Sub
</pre>]

Original source : http://www.openntf.org/projects/codebin/codebin.ns…

Написано lotusnotes

Декабрь 26, 2008 в 11:29

Опубликовано в Lotus Notes

Can Lotus Notes/Domino and Microsoft SharePoint play nice together?

без комментариев

As companies transition from employing Generation X to Generation Y workers, use of collaboration software such as Lotus Quickr and Microsoft SharePoint is beginning to gain steam for project and document management. For enterprises that rely solely on Lotus Notes/Domino and Lotus Quickr, the ability for individuals to share information is relatively straightforward and seamless. But even in Domino shops, new applications are cropping up virally that administrators must deal with. Windows SharePoint Server (WSS) 2003 is one such example.

Original source : http://feeds.feedburner.com/~r/techtarget/Searchdo…

Написано lotusnotes

Декабрь 26, 2008 в 5:58

Опубликовано в Lotus Notes

IBM Lotus Notes versus Microsoft SharePoint: The rest of the story

без комментариев

With continued growth in the IBM Lotus Notes install base and expanding deployments of Microsoft SharePoint, there has been renewed discussion about the competitive environment of IBM Lotus Notes/Domino versus Microsoft SharePoint. While the Notes versus SharePoint question is a timely topic for many organizations, it’s useful to expand the analysis to include other solutions such as Quickr, Sametime and Connections.

Original source : http://feeds.feedburner.com/~r/techtarget/Searchdo…

Написано lotusnotes

Декабрь 26, 2008 в 5:57

Опубликовано в Lotus Notes

Provide rich-text formatting via the Profile document and Formula

без комментариев

This tip explains a method for providing content to a separate Lotus Notes form while allowing rich-text formatting using the Profile document. Not only will Lotus Notes users be able to edit the form, but using this Formula language code will also eliminate the need to code text inside of the form design.

Original source : http://feeds.feedburner.com/~r/techtarget/Searchdo…

Написано lotusnotes

Декабрь 26, 2008 в 5:57

Опубликовано в Lotus Notes

How to manage passwords to secure Lotus Notes/Domino environments

без комментариев

Password and ID management can make or break a Lotus Notes/Domino environment. Keeping users’ passwords and systems secure can be a challenge. Here are some tools and best practices to help you maintain a tight grip on all Lotus Notes passwords within your infrastructure.

Original source : http://feeds.feedburner.com/~r/techtarget/Searchdo…

Написано lotusnotes

Декабрь 26, 2008 в 5:57

Опубликовано в Lotus Notes