Manage Learn to apply best practices and optimize your operations.

How To Update All Folders of 4.x Mail to R5 Using @UpdateViewDesign

If I replace the design of my archive mail(4.x) with mail50.ntf, the existing folders have the problem "Illegal circular reference". This agent takes all the folders and updates the design with the mail's view ($Inbox).

The agent use an undocumented @Formula to perform the update.


Sub Initialize

Dim session As New NotesSession
Dim db As NotesDatabase
Dim vResult As Variant
Dim macro As String
Dim pos As Integer
Dim nombre As String
'

Set db = session.CurrentDatabase
Forall v In db.Views
' The views should be folder type and don't system or hiden views
If v.IsFolder And Left(v.name,1) <> "(" Then
pos = Instr( v.name, "")
If pos <> 0 Then
nombre = v.name
While pos <> 0
nombre = Mid$(nombre, 1, pos-1) + "" + Mid$(nombre, pos+1)
pos = Instr(pos + 2, Nombre, "") ' Se inicia la b?squeda del caracter de la ?ltima posici?n en adelante
Wend
macro = (|@UpdateViewDesign("| & Nombre & |"; "($Inbox)")|)
Else
macro = (|@UpdateViewDesign("| & v.Name & |"; "($Inbox)")|)
End If
vResult = Evaluate(macro)
End If
End Forall
End Sub

Dig Deeper on Lotus Notes Domino Administration Tools

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchDataCenter

SearchContentManagement

Close