| Back | Main view

V5Actions problem in IMiS template

Product:IMiS/Notes interface
Release:All V3 releases prior 3.4.310
Date:10/20/2003

Case: There is a bug in all V3 releases prior to 3.4.310. The bug appears only if you change and resave "IMiS Client" subform.

The problem is, that "IMiS Client" subform was saved with R4 designer and with R5 designer. That means that all actions "View", "Scan" and "IMiS Menu" have different code in R4 and R5 (or higher) Notes client, because there is V5ACTIONS item in this subform. This bug is solved in 3.4.310 release.

In orginal template, both codestreams are the same. The problem appears only if you change something in "IMiS Client" subform actions and then save it.

Description:

You can easily remove V5ACTIONS item from "IMiS Client" subform. Just add agent with following code under in your IMiS template. It will find "IMiS Client" subform and delete V5ACTIONS item.

Sub Initialize
     ' remove R5 actions in IMiS Client subform
     
     Dim session As New NotesSession
     Dim db As NotesDatabase
     Dim doc As NotesDocument
     Dim ChangeCount As Integer
     Dim i As Integer
     Dim id As String
     
     Set db=session.CurrentDatabase
     
     For i = 314 To 10000
          id = Right$("00000000" + Hex$(i),8)
          Set doc = db.GetDocumentById (id)
          If Not doc Is Nothing Then
               If doc.HasItem("$Title") Then
                    temp = doc.GetItemValue( "$Title" )
                    If temp(0) = "IMiS Client" Then
                         Print "ID: " + id  
                         If doc.HasItem("$V5Actions") Then
                              Call doc.RemoveItem("$V5Actions")
                              Call doc.save(True,True)
                         End If
                         Msgbox "IMiS Client subform found and patched!"
                         Exit Sub
                    End If
               End If
          End If          
     Next
     
End Sub

Related Documents:

- http://www-10.lotus.com/ldd/46dom.nsf/55c38d716d632d9b8525689b005ba1c0/e7f640ff3e36ddd08525679400496f1f?OpenDocument
- http://www-10.lotus.com/ldd/46dom.nsf/55c38d716d632d9b8525689b005ba1c0/f7db705b705599918525696d00540704?OpenDocument


| Back | Main view