私は lotusScript と lotus notes の初心者です。notesView を使用してデータベースからデータを取得できます。そのための私の lotusScript コードのパスは次のとおりです。
Sub getViewData
Dim session As New NotesSession
Dim db As NotesDatabase
Dim mainDoc As NotesDocument
Set db = session.CurrentDatabase
Dim collection As NotesDocumentCollection
Set collection = db.AllDocuments
Dim fileName As String
Dim fileNum As Integer
Dim item As NotesItem
Forall v In db.Views
Set mainDoc = v.GetFirstDocument
fileNum% = Freefile()
fileName$ = "C:\AllViewsData\" & v.name & ".txt"
Open FileName$ For Append As fileNum%
Write #fileNum% , "////// VIEW NAME:" & v.name & "////////////"
Set mainDoc = v.GetFirstDocument
While Not ( mainDoc Is Nothing )
Forall i In mainDoc.Items
ss = ss & " " & i.Name
End Forall
Write #fileNum% , ss
Set mainDoc = v.GetNextDocument( mainDoc )
Wend
Close fileNum%
End Forall
サブ終了
各 notesForms の sql(リレーショナル) テーブルを設計しました。notesForm を使用してデータを取得し、それを対応するテーブルに保存しようとしましたが、それはできませんでした:(どんな助けも大歓迎です。