Autor Thema: Export einer Ansicht als txt  (Gelesen 1647 mal)

Offline lotus blue

  • Aktives Mitglied
  • ***
  • Beiträge: 223
  • Geschlecht: Männlich
Export einer Ansicht als txt
« am: 10.09.08 - 11:16:23 »
Hallöchen,
bräuchte mal wieder Eure Hilfe :-*

Habe eine Ansicht aus der ich per Agent den Inhalt der 1.Spalte in einen txt-Datei exportiere.
Nun möchte ich aber zugleich ein Datumsfeld in den jeweiligen Dokumenten füllen.
Das Script zum Export funzt bereits hervorragend, nur haperts es daran, an welcher Stelle ich im Script das Datumsfeld fülle.

Hier das LS:

Sub Initialize
   Dim s As  NotesSession
   Dim db As NotesDatabase
   Dim view As NotesView
   Dim VEC As NotesViewEntryCollection   
   Dim ve As NotesViewEntry
   Dim doc As NotesDocument
   Dim fileName As String
   Dim VsNr As String
   
   
   Set s = New NotesSession
   Set db = s.CurrentDatabase
   Set view =db.getview("Namederview")
   
   If Not(view.EntryCount = 0) Then
      Set VEC = view.AllEntries     
      Set ve = VEC.GetFirstEntry()
      
      fileName = "C:\Ordner\test.txt"
      Open fileName For Output As #1
      Nummer = Nummer      
      While Not (ve Is Nothing)
         Set doc = ve.Document
         
         Write #1, doc.Nummer(0)
         Set ve = VEC.getNextEntry(ve)   
      Wend   
   
      Close #1   
   End If   
End Sub


Hätte zum Füllen des Datumfeldes an    
Call doc.ReplaceItemValue("NamedesFeldes", Today)gedacht.

Kann mir bitte jemand auf die Sprünge helfen? :-:
Gruß Jason

Offline m3

  • Freund des Hauses!
  • Gold Platin u.s.w. member:)
  • *****
  • Beiträge: 8.102
  • Geschlecht: Männlich
  • Non ex transverso sed deorsum!
    • leyrers online pamphlet
Re: Export einer Ansicht als txt
« Antwort #1 am: 10.09.08 - 11:23:46 »
Zwischen "Set doc = ve.Document" und "Set ve = VEC.getNextEntry(ve)".
HTH
m³ aka. Martin -- leyrers online pamphlet | LEYON - All things Lotus (IBM Collaborations Solutions)

All programs evolve until they can send email.
Except Microsoft Exchange.
    - Memorable Quotes from Alt.Sysadmin.Recovery

"Lotus Notes ist wie ein Badezimmer, geht ohne Kacheln, aber nicht so gut." -- Peter Klett

"If there isn't at least a handful of solutions for any given problem, it isn't IBM"™ - @notessensai

Offline lotus blue

  • Aktives Mitglied
  • ***
  • Beiträge: 223
  • Geschlecht: Männlich
Re: Export einer Ansicht als txt
« Antwort #2 am: 10.09.08 - 11:40:56 »
Zwischen "Set doc = ve.Document" und "Set ve = VEC.getNextEntry(ve)".

Grazie hatte es bis dato vor Wend
 :knuddel: :love:  ;D ;D
Gruß Jason

 

Impressum Atnotes.de  -  Powered by Syslords Solutions  -  Datenschutz